From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-text/dos2unix/Manifest | 5 ++ app-text/dos2unix/dos2unix-7.3.5.ebuild | 82 +++++++++++++++++++++++++++++++++ app-text/dos2unix/dos2unix-7.4.0.ebuild | 82 +++++++++++++++++++++++++++++++++ app-text/dos2unix/metadata.xml | 11 +++++ 4 files changed, 180 insertions(+) create mode 100644 app-text/dos2unix/Manifest create mode 100644 app-text/dos2unix/dos2unix-7.3.5.ebuild create mode 100644 app-text/dos2unix/dos2unix-7.4.0.ebuild create mode 100644 app-text/dos2unix/metadata.xml (limited to 'app-text/dos2unix') diff --git a/app-text/dos2unix/Manifest b/app-text/dos2unix/Manifest new file mode 100644 index 000000000000..891e3e57a5fa --- /dev/null +++ b/app-text/dos2unix/Manifest @@ -0,0 +1,5 @@ +DIST dos2unix-7.3.5.tar.gz 662133 BLAKE2B e24f77d92fe0c5931f9ca762b79a1713b14cc39b7566f78d55c4fd58bb7d3c0de1f2a8add8ffd6c3fa26a6bae73c412572fc71701e26b7b52f15b51b0de0d294 SHA512 beafefa715d894ec51bd808b18485bcf413f93b888203486e659f7e30b922b32b2f1da2305ef9ae85e54085ba3819bd512957bb872b529fe4728000cec7d3e58 +DIST dos2unix-7.4.0.tar.gz 710339 BLAKE2B 629c4a410f0cbb0b5b0fdb89c03fbec1965759a747309ad8a4459820bf2151d1861f4040d67ce6934ca27cfc3b6d0495eccd0966045803f065b10520808d9686 SHA512 41be6b0c747f4a8e316eccecd468c8250aa6791962485569eb9496def60818ae434d619b5cfb5f80f15f8d17800314f5aefe229dc5d37faaa34e1270575175e9 +EBUILD dos2unix-7.3.5.ebuild 2037 BLAKE2B edfc091f5ae520b92c58aa58b5273a1748c07741a64ad37fa9b06458c257b2e394fd43c56ae46c562f40a8331c9360e486f7d1e27957bff1f6e0c783b4f5a0f8 SHA512 be9ba30896b2e246b978ec3184c593c85e06e3b223fcdce599874645477f35c4161a6a1261379dbed08db2556eb9c472f6a89959a636887cfdd51ff924377dbe +EBUILD dos2unix-7.4.0.ebuild 2046 BLAKE2B b76c15a3753bcfe22324fd3caafd4e4a1286d6d96bc379a3e23854dcc9bb7bb1344e7661cbdcc846caa1e740bee2a428f88408dea8ea6298735d15e2d8ffbfc5 SHA512 27fc2bd3e3e43512d4ab571ca5ddfb4f6ba8e0940eb8bd65c9d90f0c602822334f5789f3a2101311006fb614708ca32396ae8c3d24b8b313aa9248c8cd76d350 +MISC metadata.xml 343 BLAKE2B c4023a36777a79352885528afd87e7709255ccf7f02d9ba28e29eb11f6c67c2775eeeec4f2db95b427b94859e70e7cd276984bca828eb872116e7ec33751c31c SHA512 12f79ed9fdd8df3c05110ea2a31123ca92a855cdf9287910802cb4e68c384764cc84c29929376426b23bfe9699574dbbdc2105d82c6e2701aa9fe67079d867f3 diff --git a/app-text/dos2unix/dos2unix-7.3.5.ebuild b/app-text/dos2unix/dos2unix-7.3.5.ebuild new file mode 100644 index 000000000000..d871ca54b250 --- /dev/null +++ b/app-text/dos2unix/dos2unix-7.3.5.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="da de eo es fr hu ja nb nl pl pt_BR ru sr sv uk vi zh_CN zh_TW" + +inherit l10n toolchain-funcs + +DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa" +HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html https://sourceforge.net/projects/dos2unix/" +SRC_URI=" + http://www.xs4all.nl/~waterlan/${PN}/${P}.tar.gz + mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" +IUSE="debug nls test" + +RDEPEND=" + !app-text/hd2u + virtual/libintl" + +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) + test? ( virtual/perl-Test-Simple ) + dev-lang/perl" + +handle_locales() { + # Make sure locale list is kept up-to-date. + local detected sorted + detected=$(echo $(printf '%s\n' */*.po | sed -e 's:.*/::' -e 's:.po$::' | sort -u)) + sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u)) + if [[ ${sorted} != "${detected}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "PLOCALES: ${sorted}" + eerror "po*/*.po: ${detected}" + die "sync PLOCALES" + fi + + # Deal with selective install of locales. + rm_loc() { rm po*/$1.po || die; } + l10n_for_each_disabled_locale_do rm_loc +} + +src_prepare() { + default + + handle_locales + + sed \ + -e '/^LDFLAGS/s|=|+=|' \ + -e '/CFLAGS_OS \+=/d' \ + -e '/LDFLAGS_EXTRA \+=/d' \ + -e "/^CFLAGS/s|-O2|${CFLAGS}|" \ + -i Makefile || die + + if use debug ; then + sed -e "/^DEBUG/s:0:1:" \ + -e "/EXTRA_CFLAGS +=/s:-g::" \ + -i Makefile || die + fi + + tc-export CC +} + +lintl() { + # same logic as from virtual/libintl + use !elibc_glibc && use !elibc_uclibc && use !elibc_musl && echo "-lintl" +} + +src_compile() { + emake prefix="${EPREFIX}/usr" \ + $(usex nls "LDFLAGS_EXTRA=$(lintl)" "ENABLE_NLS=") +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \ + $(usex nls "" "ENABLE_NLS=") install +} diff --git a/app-text/dos2unix/dos2unix-7.4.0.ebuild b/app-text/dos2unix/dos2unix-7.4.0.ebuild new file mode 100644 index 000000000000..7e09f7d15bea --- /dev/null +++ b/app-text/dos2unix/dos2unix-7.4.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="da de eo es fr hu ja nb nl pl pt_BR ru sr sv uk vi zh_CN zh_TW" + +inherit l10n toolchain-funcs + +DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa" +HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html https://sourceforge.net/projects/dos2unix/" +SRC_URI=" + http://www.xs4all.nl/~waterlan/${PN}/${P}.tar.gz + mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" +IUSE="debug nls test" + +RDEPEND=" + !app-text/hd2u + virtual/libintl" + +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) + test? ( virtual/perl-Test-Simple ) + dev-lang/perl" + +handle_locales() { + # Make sure locale list is kept up-to-date. + local detected sorted + detected=$(echo $(printf '%s\n' */*.po | sed -e 's:.*/::' -e 's:.po$::' | sort -u)) + sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u)) + if [[ ${sorted} != "${detected}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "PLOCALES: ${sorted}" + eerror "po*/*.po: ${detected}" + die "sync PLOCALES" + fi + + # Deal with selective install of locales. + rm_loc() { rm po*/$1.po || die; } + l10n_for_each_disabled_locale_do rm_loc +} + +src_prepare() { + default + + handle_locales + + sed \ + -e '/^LDFLAGS/s|=|+=|' \ + -e '/CFLAGS_OS \+=/d' \ + -e '/LDFLAGS_EXTRA \+=/d' \ + -e "/^CFLAGS/s|-O2|${CFLAGS}|" \ + -i Makefile || die + + if use debug ; then + sed -e "/^DEBUG/s:0:1:" \ + -e "/EXTRA_CFLAGS +=/s:-g::" \ + -i Makefile || die + fi + + tc-export CC +} + +lintl() { + # same logic as from virtual/libintl + use !elibc_glibc && use !elibc_uclibc && use !elibc_musl && echo "-lintl" +} + +src_compile() { + emake prefix="${EPREFIX}/usr" \ + $(usex nls "LDFLAGS_EXTRA=$(lintl)" "ENABLE_NLS=") +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \ + $(usex nls "" "ENABLE_NLS=") install +} diff --git a/app-text/dos2unix/metadata.xml b/app-text/dos2unix/metadata.xml new file mode 100644 index 000000000000..963ee8fb3de7 --- /dev/null +++ b/app-text/dos2unix/metadata.xml @@ -0,0 +1,11 @@ + + + + + shell-tools@gentoo.org + Gentoo Shell Tools Project + + + dos2unix + + -- cgit v1.2.3