From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/cygwin: cygwin-1.5.25.15.ebuild metadata.xml ChangeLog |
Date: | Fri, 28 Nov 2008 09:21:46 |
Message-Id: | E1L5zXk-0005IM-Dk@stork.gentoo.org |
1 | vapier 08/11/28 09:21:44 |
2 | |
3 | Added: cygwin-1.5.25.15.ebuild metadata.xml ChangeLog |
4 | Log: |
5 | Initial package by me. |
6 | (Portage version: 2.2_rc16/cvs/Linux 2.6.27.4 x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-libs/cygwin/cygwin-1.5.25.15.ebuild |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cygwin/cygwin-1.5.25.15.ebuild?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cygwin/cygwin-1.5.25.15.ebuild?rev=1.1&content-type=text/plain |
13 | |
14 | Index: cygwin-1.5.25.15.ebuild |
15 | =================================================================== |
16 | # Copyright 1999-2008 Gentoo Foundation |
17 | # Distributed under the terms of the GNU General Public License v2 |
18 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/cygwin/cygwin-1.5.25.15.ebuild,v 1.1 2008/11/28 09:21:44 vapier Exp $ |
19 | |
20 | inherit toolchain-funcs |
21 | |
22 | export CBUILD=${CBUILD:-${CHOST}} |
23 | export CTARGET=${CTARGET:-${CHOST}} |
24 | if [[ ${CTARGET} == ${CHOST} ]] ; then |
25 | if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then |
26 | export CTARGET=${CATEGORY/cross-} |
27 | fi |
28 | fi |
29 | |
30 | W32API_BIN="3.12-1" |
31 | MY_P="${PN}-${PV%.*}-${PV##*.}" |
32 | DESCRIPTION="Linux-like environment for Windows" |
33 | HOMEPAGE="http://cygwin.com/" |
34 | SRC_URI="!crosscompile_opts_headers-only? ( ftp://sourceware.org/pub/cygwin/release/cygwin/${MY_P}-src.tar.bz2 ) |
35 | crosscompile_opts_headers-only? ( |
36 | ftp://sourceware.org/pub/cygwin/release/w32api/w32api-${W32API_BIN}.tar.bz2 |
37 | ftp://sourceware.org/pub/cygwin/release/cygwin/${MY_P}.tar.bz2 |
38 | )" |
39 | |
40 | LICENSE="GPL-2" |
41 | SLOT="0" |
42 | KEYWORDS="~amd64 ~x86" |
43 | IUSE="crosscompile_opts_headers-only" |
44 | RESTRICT="strip" |
45 | |
46 | DEPEND="" |
47 | |
48 | S=${WORKDIR} |
49 | |
50 | just_headers() { |
51 | use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] |
52 | } |
53 | |
54 | pkg_setup() { |
55 | if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then |
56 | die "Invalid configuration; do not emerge this directly" |
57 | fi |
58 | } |
59 | |
60 | src_unpack() { |
61 | unpack ${A} |
62 | if just_headers ; then |
63 | mv usr/lib/w32api/* usr/lib/ || die |
64 | else |
65 | rm -rf ${MY_P}/etc # scrub garbage |
66 | fi |
67 | } |
68 | |
69 | src_compile() { |
70 | if just_headers ; then |
71 | return 0 |
72 | |
73 | # steps to install via src pkg |
74 | cd winsup/cygwin |
75 | econf || die |
76 | else |
77 | CHOST=${CTARGET} strip-unsupported-flags |
78 | mkdir "${WORKDIR}"/build |
79 | cd "${WORKDIR}"/build |
80 | ECONF_SOURCE=${S} \ |
81 | econf --prefix=/usr/${CTARGET}/usr || die |
82 | emake || die |
83 | fi |
84 | } |
85 | |
86 | src_install() { |
87 | if just_headers ; then |
88 | # cygwin guys do not support bootstrapping. thus the cygwin src pkg |
89 | # blows and cannot be bootstrapped. use the binaries -- the only |
90 | # thing upstream supports. |
91 | insinto /usr/${CTARGET} |
92 | doins -r * || die |
93 | return 0 |
94 | |
95 | # steps to install via src pkg |
96 | insinto /usr/${CTARGET}/usr/include |
97 | doins -r winsup/w32api/include/* || die |
98 | doins -r newlib/libc/include/* || die |
99 | dosym usr/include /usr/${CTARGET}/sys-include |
100 | cd winsup/cygwin |
101 | emake install-headers tooldir="${D}"/usr/${CTARGET}/usr || die |
102 | else |
103 | cd "${WORKDIR}"/build |
104 | emake install DESTDIR="${D}" || die |
105 | env -uRESTRICT CHOST=${CTARGET} prepallstrip |
106 | fi |
107 | } |
108 | |
109 | |
110 | |
111 | 1.1 dev-libs/cygwin/metadata.xml |
112 | |
113 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cygwin/metadata.xml?rev=1.1&view=markup |
114 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cygwin/metadata.xml?rev=1.1&content-type=text/plain |
115 | |
116 | Index: metadata.xml |
117 | =================================================================== |
118 | <?xml version="1.0" encoding="UTF-8"?> |
119 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
120 | <pkgmetadata> |
121 | <herd>toolchain</herd> |
122 | </pkgmetadata> |
123 | |
124 | |
125 | |
126 | 1.1 dev-libs/cygwin/ChangeLog |
127 | |
128 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cygwin/ChangeLog?rev=1.1&view=markup |
129 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cygwin/ChangeLog?rev=1.1&content-type=text/plain |
130 | |
131 | Index: ChangeLog |
132 | =================================================================== |
133 | # ChangeLog for dev-libs/cygwin |
134 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
135 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/cygwin/ChangeLog,v 1.1 2008/11/28 09:21:44 vapier Exp $ |
136 | |
137 | *cygwin-1.5.25.15 (28 Nov 2008) |
138 | |
139 | 28 Nov 2008; Mike Frysinger <vapier@g.o> +metadata.xml, |
140 | +cygwin-1.5.25.15.ebuild: |
141 | Initial package by me. |