/[gentoo-x86]/sys-devel/parity/parity-1.2.5.ebuild
Gentoo

Contents of /sys-devel/parity/parity-1.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Mar 12 16:07:46 2012 UTC (2 years, 3 months ago) by haubi
Branch: MAIN
CVS Tags: HEAD
revbump

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/parity/parity-9999.ebuild,v 1.3 2011/08/10 20:31:23 mr_bones_ Exp $
4
5 EAPI=4
6
7 DESCRIPTION="An Interix to native Win32 Cross-Compiler Tool (requires Visual Studio)."
8 HOMEPAGE="http://www.sourceforge.net/projects/parity/"
9
10 if [[ ${PV} == 9999 ]]; then
11 inherit subversion
12 ESVN_REPO_URI="https://parity.svn.sf.net/svnroot/parity/trunk"
13 ESVN_BOOTSTRAP="confix --bootstrap"
14 ESVN_PROJECT="${PN}"
15 KEYWORDS=""
16
17 DEPEND="dev-util/confix"
18 else
19 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
20 KEYWORDS="~x86-interix ~x86-winnt"
21 fi
22
23 LICENSE="LGPL-3"
24 SLOT="0"
25 IUSE=""
26
27 pkg_setup() {
28 if [ -z "${MSSDK}" ]; then
29 einfo "NOTE: When using Visual Studio 2008, the Platform SDK is no longer"
30 einfo "installed alongside with the other components, but has it's own"
31 einfo "root directory, most likely something like this:"
32 einfo ""
33 einfo " C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A"
34 einfo ""
35 einfo "To make parity find it's paths correctly, please set MSSDK to the"
36 einfo "value correspoding to the above example for your system."
37 fi
38 }
39
40 src_install() {
41 emake DESTDIR="${D}" install || die "emake install failed"
42
43 # create i586-pc-winnt*-g[++|cc|..] links..
44 local exeext=
45
46 [[ -f ${ED}/usr/bin/parity.gnu.gcc.exe ]] && exeext=.exe
47
48 # create cross compiler syms
49 dosym /usr/bin/parity.gnu.gcc${exeext} /usr/bin/i586-pc-winnt$(uname -r)-gcc
50 dosym /usr/bin/parity.gnu.gcc${exeext} /usr/bin/i586-pc-winnt$(uname -r)-c++
51 dosym /usr/bin/parity.gnu.gcc${exeext} /usr/bin/i586-pc-winnt$(uname -r)-g++
52 dosym /usr/bin/parity.gnu.ld${exeext} /usr/bin/i586-pc-winnt$(uname -r)-ld
53
54 # we don't need the header files installed by parity... private
55 # header files are supported with a patch from 2.1.0-r1 onwards,
56 # so they won't be there anymore, but -f does the job in any case.
57 rm -f "${ED}"/usr/include/*.h
58 }

  ViewVC Help
Powered by ViewVC 1.1.20