summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-05-16 10:32:07 -0400
committerMike Gilbert <floppym@gentoo.org>2020-05-16 10:32:07 -0400
commitcadacd57bba610a5afcd3f6df03d8b22c482f822 (patch)
tree0407bee5a70caee81e4bc12a8e4fd5a83e7eeec4 /app-text/recode/recode-3.7.6-r1.ebuild
parentgames-board/pychess: Version bump to 1.0.2 (diff)
downloadgentoo-cadacd57bba610a5afcd3f6df03d8b22c482f822.tar.gz
gentoo-cadacd57bba610a5afcd3f6df03d8b22c482f822.tar.bz2
gentoo-cadacd57bba610a5afcd3f6df03d8b22c482f822.zip
app-text/recode: set subslot
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-text/recode/recode-3.7.6-r1.ebuild')
-rw-r--r--app-text/recode/recode-3.7.6-r1.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/app-text/recode/recode-3.7.6-r1.ebuild b/app-text/recode/recode-3.7.6-r1.ebuild
new file mode 100644
index 000000000000..88f530ff3af2
--- /dev/null
+++ b/app-text/recode/recode-3.7.6-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic libtool toolchain-funcs
+
+DESCRIPTION="Convert files between various character sets"
+HOMEPAGE="https://github.com/rrthomas/recode"
+SRC_URI="https://github.com/rrthomas/recode/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+# librecode soname version
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="nls static-libs"
+
+DEPEND="sys-devel/flex"
+BDEPEND="
+ nls? ( sys-devel/gettext )
+"
+
+src_configure() {
+ tc-export CC LD
+ # on solaris -lintl is needed to compile
+ [[ ${CHOST} == *-solaris* ]] && append-libs "-lintl"
+ # --without-included-gettext means we always use system headers
+ # and library
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -exec rm -v {} + || die
+}