diff options
Diffstat (limited to 'app-text/recode')
-rw-r--r-- | app-text/recode/Manifest | 10 | ||||
-rw-r--r-- | app-text/recode/files/recode-3.6-as-if.patch | 19 | ||||
-rw-r--r-- | app-text/recode/files/recode-3.6-gettextfix.diff | 23 | ||||
-rw-r--r-- | app-text/recode/metadata.xml | 8 | ||||
-rw-r--r-- | app-text/recode/recode-3.6_p20-r1.ebuild | 64 | ||||
-rw-r--r-- | app-text/recode/recode-3.7_pre20140303.ebuild | 41 |
6 files changed, 165 insertions, 0 deletions
diff --git a/app-text/recode/Manifest b/app-text/recode/Manifest new file mode 100644 index 000000000000..4430b7510445 --- /dev/null +++ b/app-text/recode/Manifest @@ -0,0 +1,10 @@ +AUX recode-3.6-as-if.patch 472 SHA256 9ab5b40dd93461ca95c5f5dd197bbe0767c45fe64fb1898f073a24c5705822b5 SHA512 5209779be9d03b770f679c2be736bc68a710e1c064b1f4a2fbb9963a8ca59a258a22b5d34ed6ac19e7a40ca83c64995f37aa9f466e49841ba2662b89d0789763 WHIRLPOOL a462c1e46c966105cbca839d850062a90a8973ec6b1e7a40b8f54df85b243dde1337338d67e9768fae5eb4c34295ad4dda3a96ee173115092b090cf7370a478f +AUX recode-3.6-gettextfix.diff 514 SHA256 eb080ec09e508f24974d3bed2dc114d2d8c5d69615e98beea67aa07d4a1e076b SHA512 71408313ed269aeb8b015c171a6d16663e2bc7a3fe5ad4e0dc16ae0ec0e1f769605d92d7e32aec908a42a5ee148cd1f00ad2c069e947c0c4f64fb3b9f7dfb1b3 WHIRLPOOL 8487a9d51e16ff97e27db2fd10d787adb430a9b2f7a0935a76a6ff889d974a475acef0452dfd61db28be429c9769c6d1eb4255a9e4741574949fdbd895f1775b +DIST recode-3.6.tar.gz 1751886 SHA256 e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf SHA512 68de277ac8cd5f6023bb077b959ab5778a78edac1299d507bab906824080b6f86e9bfcd89169aa474197c2faa9af2ceb1ed272c8dd4d50caef373afa05daed1b WHIRLPOOL 08eef3eea75d1898800d9f18eec95f50706b4e75285ce22e71723069f7e2a07ee762693c8366e5139add65b319276ced71b6f046884c1e75eb89a3922b7f3dab +DIST recode-3.7_pre20140303.zip 1902903 SHA256 baba145f8c8aa7ba223419dadc942f2182450925283c1067fa16f87b3a9b3857 SHA512 256d79d6f9de18bbf53cb322f0467411ef2ff8e4f242d073d7302fbd05e4942373023514d0a88e33701280c1cb4e0235d76efb9220729cd1f91f9ad8fd2407de WHIRLPOOL 19290f675cacc30ee51f198d765d27af9d03d7a6e0f048b1f14b812f7cf11533a542dbd1bc13c61037ae327a5b5693e07a5bd9b1aa3d244266f2f658ca378dfd +DIST recode_3.6-20.debian.tar.gz 341117 SHA256 ec0e25d91a8d5e4a61e8e2876c338ae6c1ba89018f02ff1ee4eb01cb7c44e7ee SHA512 bc586534e77b49da7d387187a8ddb042a12871f87f4f32c818ce7218b7254ac5ba6eccb14aaaf0312579f27958883f2da620016a7049c3af24c8bfba81acc3ef WHIRLPOOL 72f00b3d6732b8794456795d847dbb2114c2577b8d5c9683c8fcb41d3bd92548322dc9d73d38af3a4811fb531d9482d1a5d37ee6600cf281bed4ceb6e794b058 +EBUILD recode-3.6_p20-r1.ebuild 1665 SHA256 de56d3a1ed237c627a5621910ca44a1707227f8216cd4a503375dc3265747c80 SHA512 deb02a301a74b69c41c2ce8e7e6f4915bbfab252351b967a6f50aca472b6d0b839bc766f8e46a8f1ba591c5e294d5c985a59e34f975300f9eaf859bfa681d0ae WHIRLPOOL 315b95e0915ca87616e84599a2e8b034f70498651fdd662a34390fa9b880851d610b5bf467c65e25d53ce1bddea46a31605130c86bd7fe57421dcaf9a7667c6a +EBUILD recode-3.7_pre20140303.ebuild 1112 SHA256 8c65ed1fe206dd7294437f584d644da8c1706146d67a4da4350a4b7229ad23dd SHA512 f402ca775006bfef301b63759204a47bf46719b954912fe0235bd47b24998a13fc8cbb167277eb3aa51e60038ad59a08a29e3e4b82098cf13a587b31c1e79c35 WHIRLPOOL 58bfb9f3ce871aad5951c4570b113bbc03883464463224b909008968346a1659ef37481011d439c6187bb5e864bf80959d4bc99e9c07a9baf4182bdbe0407417 +MISC ChangeLog 2896 SHA256 7f9886a621c3148a29d9f008c859c0ffab832347c8a07304d67d09398132ce66 SHA512 6f295bc32b20db686bf6f246ef71a4733f69bc0adaf07d29aeb6a472eb5cc3b4e75267470ff1e89d5b1a1add1758f4494fee966efe40df3c5917794d3832693c WHIRLPOOL 268729f264b0791eb2a2019455db49708380d1c5acd0a0bafa680d59132105f1d6e85daf9bb5264796f052d56ad1207be51ec890e959f5c2d2cb9e3d321b1642 +MISC ChangeLog-2015 13536 SHA256 fabb10b0e09b2a656a9a9d3c4e17c3258c4a07db217a3c48c40873751ba4055e SHA512 d811e5dbb4a70309a9159d5643b3e35dcb105001da9ea519bde2d79529daaf44d4761da7d9e54289a6894fcd212683a118b56a04e66a85545d4b6086d681e4a0 WHIRLPOOL 073da415ef94cfa3850db7941ba3dc8a8b821815d4ef0609c765845d49e274bc0ec41df7f173dbad17bfebf50d1c162339569e37e43cbef5c22c1ea3445740f5 +MISC metadata.xml 271 SHA256 fb77ec802242340d65f4f1cf61787ffa6fb4d57ed02f61feebeed67d2dfb5467 SHA512 3e98f5382cf789992bdfc0f32e6e36eba31944be654c03f2ed9bd00baf56c8b768c256c4f8778d5775d6df38da4afcf8e32b6e6495a1ecfc8e7982c7c8943b1b WHIRLPOOL d6212acd36a69fee56b014b2e1724369857e776204569ac774915e589fd2242b3cd961226d9f125eed452d6c420468e60f038c9b49d1d2a8827d13766918f872 diff --git a/app-text/recode/files/recode-3.6-as-if.patch b/app-text/recode/files/recode-3.6-as-if.patch new file mode 100644 index 000000000000..c7bcc27c8750 --- /dev/null +++ b/app-text/recode/files/recode-3.6-as-if.patch @@ -0,0 +1,19 @@ +http://bugs.gentoo.org/283029 + +--- a/m4/flex.m4 ++++ b/m4/flex.m4 +@@ -8,11 +8,11 @@ dnl ad_AC_PROG_FLEX + dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT + AC_DEFUN(ad_AC_PROG_FLEX, + [AC_CHECK_PROGS(LEX, flex, missing) +-if test "$LEX" = missing; then ++AS_IF([test "$LEX" = missing], [dnl + LEX="\$(top_srcdir)/$ac_aux_dir/missing flex" + LEX_OUTPUT_ROOT=lex.yy + AC_SUBST(LEX_OUTPUT_ROOT)dnl +-else ++], [: + AC_PROG_LEX + AC_DECL_YYTEXT +-fi]) ++])]) diff --git a/app-text/recode/files/recode-3.6-gettextfix.diff b/app-text/recode/files/recode-3.6-gettextfix.diff new file mode 100644 index 000000000000..3b7eb8ba20e6 --- /dev/null +++ b/app-text/recode/files/recode-3.6-gettextfix.diff @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/239372 + +patch by Dmitry Karasik + +--- recode-3.6/m4/gettext.m4 ++++ recode-3.6/m4/gettext.m4 +@@ -109,12 +109,12 @@ + else + ac_items="$LINGUAS" + for ac_item in $ac_items; do +- case "$ALL_LINGUAS" in +- *$ac_item*) ++ for supported_item in $ALL_LINGUAS; do ++ if test "$ac_item" = "$supported_item"; then + ac_print="$ac_print $ac_item" + MOFILES="$MOFILES $ac_item.mo" +- ;; +- esac ++ fi ++ done + done + fi + AC_SUBST(MOFILES) diff --git a/app-text/recode/metadata.xml b/app-text/recode/metadata.xml new file mode 100644 index 000000000000..3e927f8d7480 --- /dev/null +++ b/app-text/recode/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> +</pkgmetadata> diff --git a/app-text/recode/recode-3.6_p20-r1.ebuild b/app-text/recode/recode-3.6_p20-r1.ebuild new file mode 100644 index 000000000000..c65c85ddd67f --- /dev/null +++ b/app-text/recode/recode-3.6_p20-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +WANT_AUTOMAKE="1.11" # bug 419455 + +inherit autotools eutils flag-o-matic libtool toolchain-funcs multilib-minimal + +MY_P=${P%_*} +MY_PV=${PV%_*} +DEB_PATCH=${PV#*p} + +DESCRIPTION="Convert files between various character sets" +HOMEPAGE="http://recode.progiciels-bpi.ca/" +SRC_URI=" + mirror://gnu/${PN}/${MY_P}.tar.gz + mirror://debian/pool/main/r/${PN}/${PN}_${MY_PV}-${DEB_PATCH}.debian.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="nls static-libs" + +DEPEND=" + sys-devel/flex + nls? ( sys-devel/gettext )" +RDEPEND="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # fix #571106 by restoring pre-GCC5 inline semantics + append-cflags -std=gnu89 + + rm "${WORKDIR}"/debian/patches/series || die + epatch \ + "${FILESDIR}/${MY_P}-gettextfix.diff" \ + "${FILESDIR}"/${MY_P}-as-if.patch \ + "${WORKDIR}"/debian/patches/* + sed -i '1i#include <stdlib.h>' src/argmatch.c || die + + # Remove old libtool macros + rm "${S}"/acinclude.m4 || die + + eautoreconf + elibtoolize +} + +multilib_src_configure() { + # on solaris -lintl is needed to compile + [[ ${CHOST} == *-solaris* ]] && append-libs "-lintl" + # --without-included-gettext means we always use system headers + # and library + ECONF_SOURCE="${S}" econf \ + --without-included-gettext \ + $(use_enable nls) \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -name '*.la' -exec rm -v {} + || die +} diff --git a/app-text/recode/recode-3.7_pre20140303.ebuild b/app-text/recode/recode-3.7_pre20140303.ebuild new file mode 100644 index 000000000000..7ec8284a8d04 --- /dev/null +++ b/app-text/recode/recode-3.7_pre20140303.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic libtool toolchain-funcs + +DESCRIPTION="Convert files between various character sets" +HOMEPAGE="http://recode.progiciels-bpi.ca/" +REV="2d7092a9999194fc0e9449717a8048c8d8e26c18" +SRC_URI="https://github.com/pinard/Recode/archive/${REV}.zip -> ${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="nls static-libs" + +DEPEND=" + sys-devel/flex + nls? ( sys-devel/gettext )" + +S="${WORKDIR}/Recode-${REV}" + +# tests fail. +RESTRICT="test" + +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 +} |