1 |
commit: 16184ab067ee2ea6769dcd5e4f67cab3166f159e |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 27 08:29:24 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 27 08:29:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16184ab0 |
7 |
|
8 |
dev-lang/icon: EAPI 5 bump. |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
dev-lang/icon/icon-9.5.0-r1.ebuild | 105 +++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/icon/icon-9.5.0-r1.ebuild b/dev-lang/icon/icon-9.5.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..22b119e |
19 |
--- /dev/null |
20 |
+++ b/dev-lang/icon/icon-9.5.0-r1.ebuild |
21 |
@@ -0,0 +1,105 @@ |
22 |
+# Copyright 1999-2016 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit eutils flag-o-matic multilib toolchain-funcs |
29 |
+ |
30 |
+MY_PV=${PV//./} |
31 |
+SRC_URI="http://www.cs.arizona.edu/icon/ftp/packages/unix/icon-v${MY_PV}src.tgz" |
32 |
+HOMEPAGE="http://www.cs.arizona.edu/icon/" |
33 |
+DESCRIPTION="very high level language" |
34 |
+ |
35 |
+LICENSE="public-domain HPND" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
38 |
+IUSE="X iplsrc" |
39 |
+ |
40 |
+S="${WORKDIR}/icon-v${MY_PV}src" |
41 |
+ |
42 |
+DEPEND="X? ( x11-proto/xextproto |
43 |
+ x11-proto/xproto |
44 |
+ x11-libs/libX11 |
45 |
+ x11-libs/libXpm |
46 |
+ x11-libs/libXt ) |
47 |
+ || ( sys-devel/gcc sys-devel/gcc-apple )" |
48 |
+ |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${P}-flags.patch |
51 |
+) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ epatch "${PATCHES[@]}" |
55 |
+ |
56 |
+ # do not prestrip files |
57 |
+ find "${S}"/src -name 'Makefile' | xargs sed -i -e "/strip/d" || die |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ # select the right compile target. Note there are many platforms |
62 |
+ # available |
63 |
+ local mytarget; |
64 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
65 |
+ mytarget="macintosh" |
66 |
+ else |
67 |
+ mytarget="linux" |
68 |
+ fi |
69 |
+ |
70 |
+ if use X; then |
71 |
+ emake X-Configure name=${mytarget} -j1 || die |
72 |
+ else |
73 |
+ emake Configure name=${mytarget} -j1 || die |
74 |
+ fi |
75 |
+ |
76 |
+ # sanitise the Makedefs file generated by Configure |
77 |
+ sed -i \ |
78 |
+ -e 's:-L/usr/X11R6/lib64::g' \ |
79 |
+ -e 's:-L/usr/X11R6/lib::g' \ |
80 |
+ -e 's:-I/usr/X11R6/include::g' \ |
81 |
+ Makedefs || die "sed of Makedefs failed" |
82 |
+ |
83 |
+ append-flags $(test-flags -fno-strict-aliasing -fwrapv) |
84 |
+} |
85 |
+ |
86 |
+src_compile() { |
87 |
+ emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ make Samples || die "Samples failed" |
92 |
+ make Test || die "Test failed" |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ dodir /usr |
97 |
+ dodir /usr/bin |
98 |
+ dodir /usr/$(get_libdir) |
99 |
+ |
100 |
+ make Install dest="${ED}/usr/$(get_libdir)/icon" || die "Make install failed" |
101 |
+ dosym /usr/$(get_libdir)/icon/bin/icont /usr/bin/icont |
102 |
+ dosym /usr/$(get_libdir)/icon/bin/iconx /usr/bin/iconx |
103 |
+ dosym /usr/$(get_libdir)/icon/bin/icon /usr/bin/icon |
104 |
+ dosym /usr/$(get_libdir)/icon/bin/vib /usr/bin/vib |
105 |
+ |
106 |
+ cd "${S}/man/man1" || die |
107 |
+ doman "${PN}"t.1 |
108 |
+ doman "${PN}".1 |
109 |
+ rm -rf "${ED}"/usr/$(get_libdir)/${PN}/man || die |
110 |
+ |
111 |
+ cd "${S}/doc" || die |
112 |
+ dodoc *.txt *.sed ../README |
113 |
+ # dohtml ignores all anything except .html files, no use here |
114 |
+ mkdir -p "${ED}"/usr/share/doc/${PF}/html |
115 |
+ cp -dpR *.htm *.gif *.jpg *.css "${ED}"/usr/share/doc/${PF}/html || die |
116 |
+ rm -rf "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die |
117 |
+ |
118 |
+ # optional Icon Programming Library |
119 |
+ if use iplsrc; then |
120 |
+ cd "${S}" || die |
121 |
+ dodir /usr/$(get_libdir)/icon/ipl |
122 |
+ rm -fv ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die |
123 |
+ insinto /usr/$(get_libdir)/icon |
124 |
+ doins -r ipl |
125 |
+ fi |
126 |
+} |