Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/
Date: Mon, 04 Nov 2019 08:13:43
Message-Id: 1572855214.09ffb07ea9a34be7bbf663ad7df0d15bfc7c9bb9.polynomial-c@gentoo
1 commit: 09ffb07ea9a34be7bbf663ad7df0d15bfc7c9bb9
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 4 08:12:34 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 4 08:13:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09ffb07e
7
8 app-text/dos2unix: Bump to version 7.4.2_beta1
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-text/dos2unix/Manifest | 1 +
14 app-text/dos2unix/dos2unix-7.4.2_beta1.ebuild | 87 +++++++++++++++++++++++++++
15 2 files changed, 88 insertions(+)
16
17 diff --git a/app-text/dos2unix/Manifest b/app-text/dos2unix/Manifest
18 index fa2eb801851..dafb60296f1 100644
19 --- a/app-text/dos2unix/Manifest
20 +++ b/app-text/dos2unix/Manifest
21 @@ -1,3 +1,4 @@
22 DIST dos2unix-7.3.5.tar.gz 662133 BLAKE2B e24f77d92fe0c5931f9ca762b79a1713b14cc39b7566f78d55c4fd58bb7d3c0de1f2a8add8ffd6c3fa26a6bae73c412572fc71701e26b7b52f15b51b0de0d294 SHA512 beafefa715d894ec51bd808b18485bcf413f93b888203486e659f7e30b922b32b2f1da2305ef9ae85e54085ba3819bd512957bb872b529fe4728000cec7d3e58
23 DIST dos2unix-7.4.0.tar.gz 710339 BLAKE2B 629c4a410f0cbb0b5b0fdb89c03fbec1965759a747309ad8a4459820bf2151d1861f4040d67ce6934ca27cfc3b6d0495eccd0966045803f065b10520808d9686 SHA512 41be6b0c747f4a8e316eccecd468c8250aa6791962485569eb9496def60818ae434d619b5cfb5f80f15f8d17800314f5aefe229dc5d37faaa34e1270575175e9
24 DIST dos2unix-7.4.1.tar.gz 711570 BLAKE2B 3dbe33007aa3e2ef47ec3dc0c3165987986955fffd7ae1435725014d52ba716626e7891911afe11674beec11fa62a12983c8dfc28cff682ca0c3e798449a9b0f SHA512 81e7cff82d95b298fb218b073f54d17fa851a7507fbd54b3cd9af7c1efa6a7bd3cf59f7a84ffbaf395403bf458650763e1755944451b24f708878a9c62316dc4
25 +DIST dos2unix-7.4.2-beta1.tar.gz 712261 BLAKE2B 020b51a53b3b8ac601efd0f3fa424fbe5a42ca5b06e1f7282c2aca021e22b38aac21e4aa7b42ed428c95053d57bb5c35483881b06dc580b533eac2fe716142a2 SHA512 323c0dd90616bca1891f8228d43bca1c6415b5765f5fba4ccf5ce692da9b545c8f10f908ba5ebd65c3409fb4d9fdaaa2fb36d589faa8b5940d27ecf8f72bc422
26
27 diff --git a/app-text/dos2unix/dos2unix-7.4.2_beta1.ebuild b/app-text/dos2unix/dos2unix-7.4.2_beta1.ebuild
28 new file mode 100644
29 index 00000000000..fa947c87eca
30 --- /dev/null
31 +++ b/app-text/dos2unix/dos2unix-7.4.2_beta1.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PLOCALES="da de eo es fr hu ja nb nl pl pt_BR ru sr sv uk vi zh_CN zh_TW"
39 +
40 +inherit l10n toolchain-funcs
41 +
42 +DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa"
43 +HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html https://sourceforge.net/projects/dos2unix/"
44 +SRC_URI="
45 + http://www.xs4all.nl/~waterlan/${PN}/${P/_/-}.tar.gz
46 + mirror://sourceforge/${PN}/${P/_/-}.tar.gz"
47 +
48 +LICENSE="BSD-2"
49 +SLOT="0"
50 +[[ "${PV}" == *_beta* ]] || \
51 +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"
52 +IUSE="debug nls test"
53 +
54 +RDEPEND="
55 + !app-text/hd2u
56 + virtual/libintl"
57 +
58 +DEPEND="
59 + ${RDEPEND}
60 + test? ( virtual/perl-Test-Simple )
61 +"
62 +BDEPEND="
63 + dev-lang/perl
64 + nls? ( sys-devel/gettext )
65 +"
66 +S="${WORKDIR}/${P/_/-}"
67 +
68 +handle_locales() {
69 + # Make sure locale list is kept up-to-date.
70 + local detected sorted
71 + detected=$(echo $(printf '%s\n' */*.po | sed -e 's:.*/::' -e 's:.po$::' | sort -u))
72 + sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u))
73 + if [[ ${sorted} != "${detected}" ]] ; then
74 + eerror "The ebuild needs to be kept in sync."
75 + eerror "PLOCALES: ${sorted}"
76 + eerror "po*/*.po: ${detected}"
77 + die "sync PLOCALES"
78 + fi
79 +
80 + # Deal with selective install of locales.
81 + rm_loc() { rm po*/$1.po || die; }
82 + l10n_for_each_disabled_locale_do rm_loc
83 +}
84 +
85 +src_prepare() {
86 + default
87 +
88 + handle_locales
89 +
90 + sed \
91 + -e '/^LDFLAGS/s|=|+=|' \
92 + -e '/CFLAGS_OS \+=/d' \
93 + -e '/LDFLAGS_EXTRA \+=/d' \
94 + -e "/^CFLAGS/s|-O2|${CFLAGS}|" \
95 + -i Makefile || die
96 +
97 + if use debug ; then
98 + sed -e "/^DEBUG/s:0:1:" \
99 + -e "/EXTRA_CFLAGS +=/s:-g::" \
100 + -i Makefile || die
101 + fi
102 +
103 + tc-export CC
104 +}
105 +
106 +lintl() {
107 + # same logic as from virtual/libintl
108 + use !elibc_glibc && use !elibc_uclibc && use !elibc_musl && echo "-lintl"
109 +}
110 +
111 +src_compile() {
112 + emake prefix="${EPREFIX}/usr" \
113 + $(usex nls "LDFLAGS_EXTRA=$(lintl)" "ENABLE_NLS=")
114 +}
115 +
116 +src_install() {
117 + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \
118 + $(usex nls "" "ENABLE_NLS=") install
119 +}