1 |
commit: 245f4901b17e0cc4087b17834a3df1a84fe0bd58 |
2 |
Author: Thamognya Kodi <contact <AT> thamognya <DOT> com> |
3 |
AuthorDate: Fri Jun 17 02:10:57 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 17:35:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=245f4901 |
7 |
|
8 |
dev-lang/icon: bump to 9.5.21b |
9 |
|
10 |
Signed-off-by: Thamognya Kodi <contact <AT> thamognya.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/25932 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-lang/icon/Manifest | 1 + |
15 |
dev-lang/icon/icon-9.5.21b.ebuild | 123 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 124 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/icon/Manifest b/dev-lang/icon/Manifest |
19 |
index 965e85ae01b5..2502efd64bd8 100644 |
20 |
--- a/dev-lang/icon/Manifest |
21 |
+++ b/dev-lang/icon/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST icon-9.5.20i.tar.gz 3138826 BLAKE2B adb4010926f2a7bbfc03c12c1c669ac202c41949556fafdf8f6e41be418e329c5c4b0697a1af0eddd0cb6acd65d03dedabf171be99ba6e5c80a92fac91323027 SHA512 31f43f0ff672e81b459c8364960b780733820000c31405ddcd13d14927f065b48d1fae47aeb90a2cd31b65340c77ec7f85e8da27797fb186fa49474e7c8be394 |
24 |
+DIST icon-9.5.21b.tar.gz 3138053 BLAKE2B dbd507e28d51458b4e7fcc47088e8e8a4b8e1ef06a03af95180f3398caf7a74215a379d4a1c19632a501849e9a9226bd129f6404d4d20385bd07f474908b0745 SHA512 db54b0f858c32877bd72dea8c3cec06de7faaa0393ae56a19f6d6a212337c99ef50d698ef0b486369955f86d657a2e888a8b1c4e0e95328f5a67fbd9dce5d74b |
25 |
|
26 |
diff --git a/dev-lang/icon/icon-9.5.21b.ebuild b/dev-lang/icon/icon-9.5.21b.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..06cf626294d8 |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/icon/icon-9.5.21b.ebuild |
31 |
@@ -0,0 +1,123 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit flag-o-matic toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Very high level language" |
40 |
+HOMEPAGE="http://www.cs.arizona.edu/icon/" |
41 |
+ |
42 |
+SRC_URI="https://github.com/gtownsend/icon/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="public-domain HPND" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
47 |
+IUSE="X" |
48 |
+ |
49 |
+S="${WORKDIR}/icon-${PV}" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ X? ( x11-libs/libX11:= )" |
53 |
+DEPEND=" |
54 |
+ ${RDEPEND} |
55 |
+ X? ( |
56 |
+ x11-libs/libXpm |
57 |
+ x11-libs/libXt |
58 |
+ )" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ # Add CFLAGS and LDFLAGS to Makefiles as needed |
63 |
+ sed -i -e 's/CFLAGS="$(CFLAGS)"/& LDFLAGS="$(LDFLAGS)"/g' ipl/cfuncs/Makefile || die |
64 |
+ sed -i -e 's/^CFLAGS = \(.*\)/CFLAGS = $(CFLAGS) \1/g' ipl/packs/loadfunc/Makefile || die |
65 |
+ sed -i -e 's/CFLAGS="$(CFLAGS)"/& LDFLAGS="$(LDFLAGS)"/g' ipl/packs/loadfunc/Makefile || die |
66 |
+ sed -i -e 's/-o $LIBNAME $CFLAGS/& $LDFLAGS/g' ipl/cfuncs/mklib.sh || die |
67 |
+ sed -i -e 's/$LIBNAME -fPIC/$LIBNAME -fPIC $LDFLAGS/g' ipl/cfuncs/mklib.sh || die |
68 |
+ sed -i -e 's/$(RLINK)/& $(LDFLAGS)/g' src/runtime/Makefile || die |
69 |
+ |
70 |
+ # executables in src/common are only used to prep the build |
71 |
+ sed -i -e 's/$(CC) $(CFLAGS)/& $(LDFLAGS)/g' src/common/Makefile || die |
72 |
+ # executables in src/rtt are only used to perform the build |
73 |
+ sed -i -e 's/$(CC) $(CFLAGS)/& $(LDFLAGS)/g' src/rtt/Makefile || die |
74 |
+ |
75 |
+ # do not prestrip files |
76 |
+ find "src" -name 'Makefile' -exec sed -i -e '/strip/d' '{}' \; || die |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ # select the right compile target. Note there are many platforms |
81 |
+ # available |
82 |
+ local mytarget; |
83 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
84 |
+ mytarget="macintosh" |
85 |
+ else |
86 |
+ mytarget="linux" |
87 |
+ fi |
88 |
+ |
89 |
+ # Fails if more then one make job process. |
90 |
+ # This is an upstream requirement. |
91 |
+ emake -j1 $(usex X X-Configure Configure) name=${mytarget} |
92 |
+ |
93 |
+ # sanitise the Makedefs file generated by 'make Configure' |
94 |
+ sed -i \ |
95 |
+ -e 's:-L/usr/X11R6/lib64::g' \ |
96 |
+ -e 's:-L/usr/X11R6/lib::g' \ |
97 |
+ -e 's:-I/usr/X11R6/include::g' \ |
98 |
+ -e 's:-I/usr/X11R6/include::g' \ |
99 |
+ -e '/^CFLAGS/d' \ |
100 |
+ Makedefs || die "sed of Makedefs failed" |
101 |
+ |
102 |
+ if use elibc_musl; then |
103 |
+ append-flags "-D_MUSL" |
104 |
+ fi |
105 |
+ append-flags $(test-flags -fno-strict-aliasing -fwrapv) |
106 |
+} |
107 |
+ |
108 |
+src_compile() { |
109 |
+ # Fails if more then one make job process. |
110 |
+ # This is an upstream requirement. |
111 |
+ emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
112 |
+} |
113 |
+ |
114 |
+src_test() { |
115 |
+ emake Samples |
116 |
+ emake Test |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ # Needed for make Install |
121 |
+ dodir /usr/$(get_libdir) |
122 |
+ |
123 |
+ emake Install dest="${D}/usr/$(get_libdir)/icon" |
124 |
+ dosym ../$(get_libdir)/icon/bin/icont /usr/bin/icont |
125 |
+ dosym ../$(get_libdir)/icon/bin/iconx /usr/bin/iconx |
126 |
+ dosym ../$(get_libdir)/icon/bin/icon /usr/bin/icon |
127 |
+ if use X; then |
128 |
+ dosym ../$(get_libdir)/icon/bin/vib /usr/bin/vib |
129 |
+ fi |
130 |
+ |
131 |
+ cd "${S}/man/man1" || die |
132 |
+ doman "${PN}"t.1 |
133 |
+ doman "${PN}".1 |
134 |
+ |
135 |
+ cd "${S}/doc" || die |
136 |
+ local DOCS=( *.txt ../README ) |
137 |
+ |
138 |
+ local HTML_DOCS=( *.{htm,gif,jpg,css} ) |
139 |
+ einstalldocs |
140 |
+ |
141 |
+ # Clean up items from make Install that get installed elsewhere |
142 |
+ rm -r "${ED}"/usr/$(get_libdir)/${PN}/man || die |
143 |
+ rm -r "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die |
144 |
+ |
145 |
+ cd "${S}" || die |
146 |
+ |
147 |
+ # Install Icon Programming Library files |
148 |
+ |
149 |
+ # Remove files only needed for building the library before copying |
150 |
+ rm -v ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die |
151 |
+ |
152 |
+ insinto /usr/$(get_libdir)/icon |
153 |
+ doins -r ipl |
154 |
+} |