summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bauman <bman@gentoo.org>2019-11-12 20:30:39 -0500
committerAaron Bauman <bman@gentoo.org>2019-11-12 20:30:39 -0500
commit7b3f75df13b0af65da3468a26605a578be1aacbb (patch)
tree6ef2031ebea68139813674f3112f6faf3f12d8aa /app-misc/getopt
parentmedia-libs/tiff: arm64 stable (bug #699868) (diff)
downloadgentoo-7b3f75df13b0af65da3468a26605a578be1aacbb.tar.gz
gentoo-7b3f75df13b0af65da3468a26605a578be1aacbb.tar.bz2
gentoo-7b3f75df13b0af65da3468a26605a578be1aacbb.zip
app-misc/getopt: drop old EAPI
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'app-misc/getopt')
-rw-r--r--app-misc/getopt/getopt-1.1.6.ebuild64
1 files changed, 0 insertions, 64 deletions
diff --git a/app-misc/getopt/getopt-1.1.6.ebuild b/app-misc/getopt/getopt-1.1.6.ebuild
deleted file mode 100644
index e153893915a5..000000000000
--- a/app-misc/getopt/getopt-1.1.6.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit toolchain-funcs eutils
-
-DESCRIPTION="getopt(1) replacement supporting GNU-style long options"
-HOMEPAGE="http://frodo.looijaard.name/project/getopt/"
-SRC_URI="http://frodo.looijaard.name/system/files/software/getopt/${P}.tar.gz"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~ppc-aix ~x64-cygwin ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="nls"
-
-RDEPEND="nls? ( virtual/libintl )"
-DEPEND="${RDEPEND}
- nls? ( sys-devel/gettext )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.1.5-libintl.patch
- epatch "${FILESDIR}"/${PN}-1.1.5-setlocale.patch
- epatch "${FILESDIR}"/${PN}-1.1.6-longrename.patch
-
- # hopefully this is portable enough
- epatch "${FILESDIR}"/${PN}-1.1.4-irix.patch
-}
-
-src_compile() {
- local nogettext="1"
- local libintl=""
- local libcgetopt=1
-
- if use nls; then
- nogettext=0
- has_version sys-libs/glibc || libintl="-lintl"
- fi
-
- [[ ${CHOST} == *-aix* ]] && libcgetopt=0
- [[ ${CHOST} == *-irix* ]] && libcgetopt=0
- [[ ${CHOST} == *-interix* ]] && libcgetopt=0
-
- emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" \
- LIBCGETOPT=${libcgetopt} \
- WITHOUT_GETTEXT=${nogettext} LIBINTL=${libintl} \
- CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
-}
-
-src_install() {
- use nls && emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install_po
-
- newbin getopt getopt-long
-
- # at least on interix, the system getopt is ... broken...
- # util-linux, which would provide the getopt binary, does not build &
- # install on interix/prefix, so, this has to provide it.
- [[ ${CHOST} == *-interix* || ${CHOST} == *-mint* ]] && \
- dosym getopt-long /usr/bin/getopt
-
- newman getopt.1 getopt-long.1
-
- dodoc getopt-*sh
-}