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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jan 17 11:07:21 2013 UTC (20 months ago) by haubi
Branch: MAIN
Changes since 1.4: +2 -2 lines
Follow Sourceforge upgrade (svn repo uri).

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key A630CCB8)

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

  ViewVC Help
Powered by ViewVC 1.1.20