/[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.1 - (hide annotations) (download)
Tue Aug 9 10:49:35 2011 UTC (7 years, 1 month ago) by mduft
Branch: MAIN
moved from prefix tree. version bumped.

(Portage version: 2.1.10.3/cvs/Linux i686)

1 mduft 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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     }
59    

  ViewVC Help
Powered by ViewVC 1.1.20