summaryrefslogtreecommitdiff
path: root/dev-lang/icon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
committerV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
commite23a08d0c97a0cc415aaa165da840b056f93c997 (patch)
tree4c5f7db60483518201fef36f8cc0712789a08db2 /dev-lang/icon
parent391b5b359a346aff490103da7dddc85047f83830 (diff)
gentoo resync : 08.10.2021
Diffstat (limited to 'dev-lang/icon')
-rw-r--r--dev-lang/icon/Manifest10
-rw-r--r--dev-lang/icon/files/icon-9.5.1-flags.patch75
-rw-r--r--dev-lang/icon/files/icon-9.5.1-fpoll.patch27
-rw-r--r--dev-lang/icon/files/icon-9.5.1-musl.patch24
-rw-r--r--dev-lang/icon/icon-9.5.1-r1.ebuild108
-rw-r--r--dev-lang/icon/icon-9.5.1-r2.ebuild126
-rw-r--r--dev-lang/icon/icon-9.5.20h.ebuild123
-rw-r--r--dev-lang/icon/metadata.xml3
8 files changed, 1 insertions, 495 deletions
diff --git a/dev-lang/icon/Manifest b/dev-lang/icon/Manifest
index 1ab9a94381f7..a14735c1921c 100644
--- a/dev-lang/icon/Manifest
+++ b/dev-lang/icon/Manifest
@@ -1,11 +1,3 @@
-AUX icon-9.5.1-flags.patch 2148 BLAKE2B 37fcaca92f67be74caddbf7789ca4e666a4e0b98e7cac3a89376bae5c50fd248eae0f0b282a46ec8d6dc55f5c423ad6dc69744d2999e96ec183d9bb369f7e7b0 SHA512 28b201a1347167b028187d6d35cb50450cf6a13b48fbf65a616683fb6c5d3373d9ba9e64c3d6fe397e858388c88a52ab330a00dc5e4ca087567089e8cdd3c897
-AUX icon-9.5.1-fpoll.patch 977 BLAKE2B 720fac1a8109d3400b6a718f708904d14e2d4207840a2e4d31888dd4be2d02c241c2f40271b89f6e3273732288e203e9298f061dfb485ca4eb0c24baea02534c SHA512 4b9d471d7d2992a75cccea98790339318b8a622d993a34affc69e0dbbbfa7103e8b994494eb33aaf26168bdb18623c5419f2c34471dee4adb1a004b420b793ab
-AUX icon-9.5.1-musl.patch 726 BLAKE2B 83aff0d45e50afa88830d18dbec53838e8adaaa4099fbe405b2212fbc0e53240fc0b21d934f2dfc263afc576bf671924d253784dc65e498b4bacecc91d479255 SHA512 b2be4642126edd75f6ae3466879841ec0123c367c93d74d91d9b9f290deaef9d7bbaa6642ad0440e297850664c6da7f33931782214c9afd8ca2d380b75d588e1
-DIST icon-9.5.20h.tar.gz 3137602 BLAKE2B 093290f7df4d0c1686b57c1debabdae5ab607fab00849885fd97b68b872db9d360e9ffe61b7be2e503f5ffa70a387011128c65586b0d48e298577d0ca690a729 SHA512 c3dec5d9d6f2e01fb27b09897cf9e54103749e64e64feb6503e1d25a00bf7da498e40207d8d220af8aca134df6fb281484bd8c8444d256f04ddc39de6a23ca1f
DIST icon-9.5.20i.tar.gz 3138826 BLAKE2B adb4010926f2a7bbfc03c12c1c669ac202c41949556fafdf8f6e41be418e329c5c4b0697a1af0eddd0cb6acd65d03dedabf171be99ba6e5c80a92fac91323027 SHA512 31f43f0ff672e81b459c8364960b780733820000c31405ddcd13d14927f065b48d1fae47aeb90a2cd31b65340c77ec7f85e8da27797fb186fa49474e7c8be394
-DIST icon-v951src.tgz 3133040 BLAKE2B 790a66a8210c1b9c55514a560590f08d3e52d7c5115d60554183f1118b5705fc1754b8188dcc3b5b739318374d568b6eafc1e3c4266de5416709e7ce6056925b SHA512 032dc9cfa57af5af2eb84b2116d0537124b5efb87b7cf744ecace2ccf49e461d5be5f91df99d85e8a988520d144fe4ecf06a6e78f7fff997b78afa95355449ad
-EBUILD icon-9.5.1-r1.ebuild 2507 BLAKE2B 5493470ee8d9a3bdad899e84d76f84b760e6bbcecc27e783247ffc386970948e3a097bb786e546f9c6473247f9707f50eb623cf270e6db2d401bea627d56967a SHA512 65aca9dfd666661578110c0056371a2b2647cadf11410f1f0af73669e2153a5d813da401b1f80ff97cccc7d507a265e80c8357ee86d86516b4de243d02f6f18e
-EBUILD icon-9.5.1-r2.ebuild 2971 BLAKE2B 811c5a0670ec4b68d5ff63f26b16f5b180a08aee91e9afe4399ddc05d22ab962c91b14055a3e2c3ed82e62fc2bfde5da1a07eec04f0b1050a777f8115001219d SHA512 4cca14040a76bdcd15d8b3e200425d9e2ad0dffc9883054f1d0a628f62fb83786928f17eaff5f2eb64bdab8d82c559895471491cac57ae90e9089d902a6956be
-EBUILD icon-9.5.20h.ebuild 3292 BLAKE2B 07c2221714a69ae1a35577bd195879f5203d03bbc8942ae777583153664d766100020a1a221f6a94f254fdff68f1383d828a078a20d9782e0c18064754c46a65 SHA512 c99f537832b4c172a15410202461f45ab1b94794bf7f9f65b52f3ab608691b193ec1ef5af91bc5df14998c840e6fc6ea0c19d2de351aa6ae822eadaa8331e5bb
EBUILD icon-9.5.20i.ebuild 3393 BLAKE2B 1cebf50867a91fa647634f8633b150c18eee036cd3466bf30aab3efb82941bd56eefba71b3d3ff0f1157c2a080444966c7b5731b833da5032bc7a3a4049a0745 SHA512 5de2efbee89b94ee1b043e65caf6c6da5a899f5c7eb46a0942fd4ec77f1307db93bdc78ee5e5d06bd4c9a20ec9d793ebd5aebae166c3e3cea8f0ecba0240b8fb
-MISC metadata.xml 498 BLAKE2B 276c8dfb1fb4216a48752fccc3eb7fab1346cc1fb978d91419e4255bd87409bfcd7807d3428071ded77a68c6edb734a5af3a87b0120f576ee3e8ca4f38ea5d27 SHA512 5ab3b16f3bc642594a4cb1116ae77a30670aa85d20fd8860152741f10a4e16fe539b3a394fa7cb16bad680e381289b5ba555ea0cb418600c6e1040f27c6e82ce
+MISC metadata.xml 410 BLAKE2B 5f65752284d58a7678eb4e338e2d4c03e9e098dd8cbd28aeb7a0276bebe2a925cb4b00325ace7edad24c94e33664c1aafda84f3f4348e57bd02a7b655f7a29ac SHA512 d05b0eaffd002eeb0e9088d43847304bd1346cf4da75c801e3663518a3fbac77bba1b2fed04ac422bedfe1220109f00d1b3809d04a0e7edd4c418088dd010d89
diff --git a/dev-lang/icon/files/icon-9.5.1-flags.patch b/dev-lang/icon/files/icon-9.5.1-flags.patch
deleted file mode 100644
index ff659b28bbc2..000000000000
--- a/dev-lang/icon/files/icon-9.5.1-flags.patch
+++ /dev/null
@@ -1,75 +0,0 @@
---- icon-v951src/ipl/cfuncs/Makefile
-+++ icon-v951src/ipl/cfuncs/Makefile
-@@ -25,7 +25,7 @@
- # library
-
- $(FUNCLIB): $(FUNCS) mklib.sh
-- CC="$(CC)" CFLAGS="$(CFLAGS)" BIN="../../bin" \
-+ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" BIN="../../bin" \
- sh mklib.sh $(FUNCLIB) $(FUNCS)
- $(FUNCS): icall.h
-
---- icon-v951src/ipl/cfuncs/mklib.sh
-+++ icon-v951src/ipl/cfuncs/mklib.sh
-@@ -12,7 +12,7 @@
- set -x
- case "$SYS" in
- Linux*|*BSD*|GNU*)
-- $CC -shared -o $LIBNAME -fPIC "$@";;
-+ $CC -shared -o $LIBNAME $CFLAGS $LDFLAGS -fPIC "$@";;
- CYGWIN*)
- # move the win32 import library for iconx.exe callbacks
- # created when iconx.exe was built
---- icon-v951src/ipl/packs/loadfunc/Makefile
-+++ icon-v951src/ipl/packs/loadfunc/Makefile
-@@ -28,7 +28,7 @@
- echo '$$define FUNCLIB "./$(FUNCLIB)"' >libnames.icn
-
- $(FUNCLIB): $(FUNCS)
-- CC="$(CC)" CFLAGS="$(CFLAGS)" BIN="../../../bin" \
-+ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" BIN="../../../bin" \
- sh $(MKLIB) $(FUNCLIB) $(FUNCS)
-
-
---- icon-v951src/src/common/Makefile
-+++ icon-v951src/src/common/Makefile
-@@ -8,7 +8,7 @@
- common: $(OBJS) gpxmaybe
-
- patchstr: patchstr.c
-- $(CC) $(CFLAGS) -o patchstr patchstr.c
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o patchstr patchstr.c
-
- gpxmaybe:
- -if [ "x$(XL)" != "x" ]; then $(MAKE) $(GDIR); fi
-@@ -25,7 +25,7 @@
- ../h/typedefs.h ../h/mproto.h ../h/cpuconf.h
-
- ../h/arch.h: infer.c
-- $(CC) $(CFLAGS) -o infer infer.c
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o infer infer.c
- ./infer >../h/arch.h
-
- identify.o: ../h/version.h
---- icon-v951src/src/rtt/Makefile
-+++ icon-v951src/src/rtt/Makefile
-@@ -22,7 +22,7 @@
-
-
- rtt: $(OBJ)
-- $(CC) $(LDFLAGS) -o rtt $(OBJ)
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o rtt $(OBJ)
-
- library: $(OBJ)
- rm -rf rtt.a
---- icon-v951src/src/runtime/Makefile
-+++ icon-v951src/src/runtime/Makefile
-@@ -30,7 +30,7 @@
-
- iconx: $(COBJS) $(XOBJS)
- cd ../common; $(MAKE)
-- $(CC) $(RLINK) -o iconx $(XOBJS) $(COBJS) $(XL) $(RLIBS) $(TLIBS)
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(RLINK) -o iconx $(XOBJS) $(COBJS) $(XL) $(RLIBS) $(TLIBS)
- cp iconx ../../bin
- strip $(SFLAGS) ../../bin/iconx$(EXE)
-
diff --git a/dev-lang/icon/files/icon-9.5.1-fpoll.patch b/dev-lang/icon/files/icon-9.5.1-fpoll.patch
deleted file mode 100644
index d2a4d5f33d21..000000000000
--- a/dev-lang/icon/files/icon-9.5.1-fpoll.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff --git a/ipl/cfuncs/fpoll.c b/ipl/cfuncs/fpoll.c
-index 9230e18..33b8121 100644
---- a/ipl/cfuncs/fpoll.c
-+++ b/ipl/cfuncs/fpoll.c
-@@ -60,12 +60,9 @@ int fpoll(int argc, descriptor *argv) /*: await data from file */
-
- /* check for data already in buffer */
- /* there's no legal way to do this in C; we cheat */
--#if defined(__GLIBC__) && defined(_STDIO_USES_IOSTREAM) /* new GCC library */
-+#if defined(__GLIBC__) /* New GCC library */
- if (f->_IO_read_ptr < f->_IO_read_end)
- RetArg(1);
--#elif defined(__GLIBC__) /* old GCC library */
-- if (f->__bufp < f->__get_limit)
-- RetArg(1);
- #elif defined(_FSTDIO) /* new BSD library */
- if (f->_r > 0)
- RetArg(1);
-@@ -92,7 +89,7 @@ int fpoll(int argc, descriptor *argv) /*: await data from file */
-
- if (r > 0)
- RetArg(1); /* success */
-- else if (r == 0)
-+ else if (r == 0)
- Fail; /* timeout */
- else
- ArgError(1, 214); /* I/O error */
diff --git a/dev-lang/icon/files/icon-9.5.1-musl.patch b/dev-lang/icon/files/icon-9.5.1-musl.patch
deleted file mode 100644
index 16fc9df01738..000000000000
--- a/dev-lang/icon/files/icon-9.5.1-musl.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -uprN a/ipl/cfuncs/fpoll.c b/ipl/cfuncs/fpoll.c
---- a/ipl/cfuncs/fpoll.c 2020-05-10 21:46:39.730752626 -0600
-+++ b/ipl/cfuncs/fpoll.c 2020-05-10 21:50:41.613577816 -0600
-@@ -33,6 +33,10 @@
- #include <sys/types.h>
- #include <sys/time.h>
-
-+#if defined(_MUSL)
-+# include <stdio_ext.h>
-+#endif
-+
- #include "icall.h"
-
- int fpoll(int argc, descriptor *argv) /*: await data from file */
-@@ -66,6 +70,9 @@ int fpoll(int argc, descriptor *argv) /*
- #elif defined(_FSTDIO) /* new BSD library */
- if (f->_r > 0)
- RetArg(1);
-+#elif defined(_MUSL) /* MUSL library */
-+ if (__freadahead(f))
-+ RetArg(1);
- #else /* old AT&T library */
- if (f->_cnt > 0)
- RetArg(1);
diff --git a/dev-lang/icon/icon-9.5.1-r1.ebuild b/dev-lang/icon/icon-9.5.1-r1.ebuild
deleted file mode 100644
index 1979b93bc02e..000000000000
--- a/dev-lang/icon/icon-9.5.1-r1.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="very high level language"
-HOMEPAGE="http://www.cs.arizona.edu/icon/"
-
-MY_PV=${PV//./}
-SRC_URI="http://www.cs.arizona.edu/icon/ftp/packages/unix/icon-v${MY_PV}src.tgz"
-
-LICENSE="public-domain HPND"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="X iplsrc"
-
-S="${WORKDIR}/icon-v${MY_PV}src"
-
-RDEPEND="
- X? ( x11-libs/libX11:= )"
-DEPEND="
- ${RDEPEND}
- X? (
- x11-libs/libXpm
- x11-libs/libXt
- )"
-
-PATCHES=( "${FILESDIR}"/${PN}-9.5.1-flags.patch )
-
-src_prepare() {
- default
-
- # do not prestrip files
- find src -name 'Makefile' | xargs sed -i -e "/strip/d" || die
-}
-
-src_configure() {
- # select the right compile target. Note there are many platforms
- # available
- local mytarget;
- if [[ ${CHOST} == *-darwin* ]]; then
- mytarget="macintosh"
- else
- mytarget="linux"
- fi
-
- # Fails if more then one make job process.
- # This is an upstream requirement.
- emake -j1 $(usex X X-Configure Configure) name=${mytarget}
-
- # sanitise the Makedefs file generated by Configure
- sed -i \
- -e 's:-L/usr/X11R6/lib64::g' \
- -e 's:-L/usr/X11R6/lib::g' \
- -e 's:-I/usr/X11R6/include::g' \
- Makedefs || die "sed of Makedefs failed"
-
- append-flags $(test-flags -fno-strict-aliasing -fwrapv)
-}
-
-src_compile() {
- # Fails if more then one make job process.
- # This is an upstream requirement.
- emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
-}
-
-src_test() {
- emake Samples
- emake Test
-}
-
-src_install() {
- # Needed for make Install
- dodir /usr/$(get_libdir)
-
- emake Install dest="${D}/usr/$(get_libdir)/icon"
- dosym ../$(get_libdir)/icon/bin/icont /usr/bin/icont
- dosym ../$(get_libdir)/icon/bin/iconx /usr/bin/iconx
- dosym ../$(get_libdir)/icon/bin/icon /usr/bin/icon
- dosym ../$(get_libdir)/icon/bin/vib /usr/bin/vib
-
- cd "${S}/man/man1" || die
- doman "${PN}"t.1
- doman "${PN}".1
-
- cd "${S}/doc" || die
- DOCS=( *.txt ../README )
-
- HTML_DOCS=( *.{htm,gif,jpg,css} )
- einstalldocs
-
- # Clean up items from make Install that get installed elsewhere
- rm -rf "${ED}"/usr/$(get_libdir)/${PN}/man || die
- rm -rf "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die
-
- # optional Icon Programming Library
- if use iplsrc; then
- cd "${S}" || die
-
- # Remove unneeded files before copy
- rm -fv ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die
-
- insinto /usr/$(get_libdir)/icon
- doins -r ipl
- fi
-}
diff --git a/dev-lang/icon/icon-9.5.1-r2.ebuild b/dev-lang/icon/icon-9.5.1-r2.ebuild
deleted file mode 100644
index 31a7c5566c0c..000000000000
--- a/dev-lang/icon/icon-9.5.1-r2.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="very high level language"
-HOMEPAGE="http://www.cs.arizona.edu/icon/"
-
-MY_PV=${PV//./}
-SRC_URI="http://www.cs.arizona.edu/icon/ftp/packages/unix/icon-v${MY_PV}src.tgz"
-
-LICENSE="public-domain HPND"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="X iplsrc"
-
-S="${WORKDIR}/icon-v${MY_PV}src"
-
-RDEPEND="
- X? ( x11-libs/libX11:= )"
-DEPEND="
- ${RDEPEND}
- X? (
- x11-libs/libXpm
- x11-libs/libXt
- )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-9.5.1-flags.patch
- # https://bugs.gentoo.org/669330
- # Fix glibc 2.28 problem.
- # Patch has been accepted upstream, but is not yet in a release
- "${FILESDIR}"/${PN}-9.5.1-fpoll.patch
-
- # https://bugs.gentoo.org/716212
- # Fix building with musl
- # Patch has been accepted upstream, but is not yet in a release
- "${FILESDIR}"/${PN}-9.5.1-musl.patch
-)
-
-src_prepare() {
- default
-
- # do not prestrip files
- find src -name 'Makefile' | xargs sed -i -e "/strip/d" || die
-}
-
-src_configure() {
- # select the right compile target. Note there are many platforms
- # available
- local mytarget;
- if [[ ${CHOST} == *-darwin* ]]; then
- mytarget="macintosh"
- else
- mytarget="linux"
- fi
-
- # Fails if more then one make job process.
- # This is an upstream requirement.
- emake -j1 $(usex X X-Configure Configure) name=${mytarget}
-
- # sanitise the Makedefs file generated by Configure
- sed -i \
- -e 's:-L/usr/X11R6/lib64::g' \
- -e 's:-L/usr/X11R6/lib::g' \
- -e 's:-I/usr/X11R6/include::g' \
- -e 's:-I/usr/X11R6/include::g' \
- -e '/^CFLAGS/d' \
- Makedefs || die "sed of Makedefs failed"
-
- if use elibc_musl; then
- append-flags "-D_MUSL"
- fi
- append-flags $(test-flags -fno-strict-aliasing -fwrapv)
-}
-
-src_compile() {
- # Fails if more then one make job process.
- # This is an upstream requirement.
- emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
-}
-
-src_test() {
- emake Samples
- emake Test
-}
-
-src_install() {
- # Needed for make Install
- dodir /usr/$(get_libdir)
-
- emake Install dest="${D}/usr/$(get_libdir)/icon"
- dosym ../$(get_libdir)/icon/bin/icont /usr/bin/icont
- dosym ../$(get_libdir)/icon/bin/iconx /usr/bin/iconx
- dosym ../$(get_libdir)/icon/bin/icon /usr/bin/icon
- if use X; then
- dosym ../$(get_libdir)/icon/bin/vib /usr/bin/vib
- fi
-
- cd "${S}/man/man1" || die
- doman "${PN}"t.1
- doman "${PN}".1
-
- cd "${S}/doc" || die
- DOCS=( *.txt ../README )
-
- HTML_DOCS=( *.{htm,gif,jpg,css} )
- einstalldocs
-
- # Clean up items from make Install that get installed elsewhere
- rm -rf "${ED}"/usr/$(get_libdir)/${PN}/man || die
- rm -rf "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die
-
- # optional Icon Programming Library
- if use iplsrc; then
- cd "${S}" || die
-
- # Remove unneeded files before copy
- rm -fv ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die
-
- insinto /usr/$(get_libdir)/icon
- doins -r ipl
- fi
-}
diff --git a/dev-lang/icon/icon-9.5.20h.ebuild b/dev-lang/icon/icon-9.5.20h.ebuild
deleted file mode 100644
index ff1ccfcca93d..000000000000
--- a/dev-lang/icon/icon-9.5.20h.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="very high level language"
-HOMEPAGE="http://www.cs.arizona.edu/icon/"
-
-SRC_URI="https://github.com/gtownsend/icon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="public-domain HPND"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE="X iplsrc"
-
-S="${WORKDIR}/icon-${PV}"
-
-RDEPEND="
- X? ( x11-libs/libX11:= )"
-DEPEND="
- ${RDEPEND}
- X? (
- x11-libs/libXpm
- x11-libs/libXt
- )"
-
-src_prepare() {
- default
- # Add CFLAGS and LDFLAGS to Makefiles as needed
- sed -i -e 's/CFLAGS="$(CFLAGS)"/& LDFLAGS="$(LDFLAGS)"/g' ipl/cfuncs/Makefile || die
- sed -i -e 's/^CFLAGS = \(.*\)/CFLAGS = $(CFLAGS) \1/g' ipl/packs/loadfunc/Makefile || die
- sed -i -e 's/CFLAGS="$(CFLAGS)"/& LDFLAGS="$(LDFLAGS)"/g' ipl/packs/loadfunc/Makefile || die
- sed -i -e 's/-o $LIBNAME $CFLAGS/& $LDFLAGS/g' ipl/cfuncs/mklib.sh || die
- sed -i -e 's/$(RLINK)/& $(LDFLAGS)/g' src/runtime/Makefile || die
-
- # executables in src/common are only used to prep the build
- sed -i -e 's/$(CC) $(CFLAGS)/& $(LDFLAGS)/g' src/common/Makefile || die
- # executables in src/rtt are only used to perform the build
- sed -i -e 's/$(CC) $(CFLAGS)/& $(LDFLAGS)/g' src/rtt/Makefile || die
-
- # do not prestrip files
- find src -name 'Makefile' | xargs sed -i -e "/strip/d" || die
-}
-
-src_configure() {
- # select the right compile target. Note there are many platforms
- # available
- local mytarget;
- if [[ ${CHOST} == *-darwin* ]]; then
- mytarget="macintosh"
- else
- mytarget="linux"
- fi
-
- # Fails if more then one make job process.
- # This is an upstream requirement.
- emake -j1 $(usex X X-Configure Configure) name=${mytarget}
-
- # sanitise the Makedefs file generated by Configure
- sed -i \
- -e 's:-L/usr/X11R6/lib64::g' \
- -e 's:-L/usr/X11R6/lib::g' \
- -e 's:-I/usr/X11R6/include::g' \
- -e 's:-I/usr/X11R6/include::g' \
- -e '/^CFLAGS/d' \
- Makedefs || die "sed of Makedefs failed"
-
- if use elibc_musl; then
- append-flags "-D_MUSL"
- fi
- append-flags $(test-flags -fno-strict-aliasing -fwrapv)
-}
-
-src_compile() {
- # Fails if more then one make job process.
- # This is an upstream requirement.
- emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
-}
-
-src_test() {
- emake Samples
- emake Test
-}
-
-src_install() {
- # Needed for make Install
- dodir /usr/$(get_libdir)
-
- emake Install dest="${D}/usr/$(get_libdir)/icon"
- dosym ../$(get_libdir)/icon/bin/icont /usr/bin/icont
- dosym ../$(get_libdir)/icon/bin/iconx /usr/bin/iconx
- dosym ../$(get_libdir)/icon/bin/icon /usr/bin/icon
- if use X; then
- dosym ../$(get_libdir)/icon/bin/vib /usr/bin/vib
- fi
-
- cd "${S}/man/man1" || die
- doman "${PN}"t.1
- doman "${PN}".1
-
- cd "${S}/doc" || die
- DOCS=( *.txt ../README )
-
- HTML_DOCS=( *.{htm,gif,jpg,css} )
- einstalldocs
-
- # Clean up items from make Install that get installed elsewhere
- rm -rf "${ED}"/usr/$(get_libdir)/${PN}/man || die
- rm -rf "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die
-
- # optional Icon Programming Library
- if use iplsrc; then
- cd "${S}" || die
-
- # Remove unneeded files before copy
- rm -fv ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die
-
- insinto /usr/$(get_libdir)/icon
- doins -r ipl
- fi
-}
diff --git a/dev-lang/icon/metadata.xml b/dev-lang/icon/metadata.xml
index ef9a3d797996..257ee9434302 100644
--- a/dev-lang/icon/metadata.xml
+++ b/dev-lang/icon/metadata.xml
@@ -9,7 +9,4 @@
<email>proxy-maint@gentoo.org</email>
<name>Gentoo Proxy Maintainers Project</name>
</maintainer>
- <use>
- <flag name="iplsrc">install the icon programming library source</flag>
- </use>
</pkgmetadata>