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