Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/
Date: Wed, 17 Aug 2022 16:21:30
Message-Id: 1660753266.d4b2acc650a82e974022fbd8f8bfe45598218fa9.mattst88@gentoo
1 commit: d4b2acc650a82e974022fbd8f8bfe45598218fa9
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 17 13:49:08 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 17 16:21:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4b2acc6
7
8 app-text/dos2unix: Drop old versions
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 app-text/dos2unix/Manifest | 1 -
13 app-text/dos2unix/dos2unix-7.4.2.ebuild | 90 ---------------------------------
14 2 files changed, 91 deletions(-)
15
16 diff --git a/app-text/dos2unix/Manifest b/app-text/dos2unix/Manifest
17 index a7860f087875..6a9a84a03711 100644
18 --- a/app-text/dos2unix/Manifest
19 +++ b/app-text/dos2unix/Manifest
20 @@ -1,2 +1 @@
21 -DIST dos2unix-7.4.2.tar.gz 727429 BLAKE2B 5ba8aecfe3a79dfe9f4d7d69453fdcdd573c8889b41240c6bce5fea1b7e9e8213454af98f768cb2d199c85684a7d48192ba4bf856a92b867594b52a2209d5e04 SHA512 3fb77561596bafd83f3f7807ce967e58d5a96e5235afe3a4074ae7112297445690b2586bf652eb0b5bd1984fd41a79478355f6df8244561b4167a8a09593110d
22 DIST dos2unix-7.4.3.tar.gz 788278 BLAKE2B da959b06e583bbf27a2cb2ce5b1f1a41380722aa09ac75b3d31260e92fd6f1203d87266d3a12201b036a69796b4aa4f23718741036e20fe686801bb368fbde22 SHA512 1c6d81348de8aca451174794141d0802685487cf6847fa91f7de745d89bcf2af864fc2ec549b9af72031891d4efcb9731fe823ce05da36d1f9e9890ff2cb60fb
23
24 diff --git a/app-text/dos2unix/dos2unix-7.4.2.ebuild b/app-text/dos2unix/dos2unix-7.4.2.ebuild
25 deleted file mode 100644
26 index 47f57b19bcd1..000000000000
27 --- a/app-text/dos2unix/dos2unix-7.4.2.ebuild
28 +++ /dev/null
29 @@ -1,90 +0,0 @@
30 -# Copyright 1999-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -PLOCALES="da de eo es fr fur hu ja nb nl pl pt_BR ru sr sv uk vi zh_CN zh_TW"
36 -
37 -inherit plocale toolchain-funcs
38 -
39 -DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa"
40 -HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html https://sourceforge.net/projects/dos2unix/"
41 -SRC_URI="
42 - http://www.xs4all.nl/~waterlan/${PN}/${P/_/-}.tar.gz
43 - mirror://sourceforge/${PN}/${P/_/-}.tar.gz"
44 -
45 -LICENSE="BSD-2"
46 -SLOT="0"
47 -[[ "${PV}" == *_beta* ]] || \
48 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris"
49 -IUSE="debug nls test"
50 -
51 -RDEPEND="
52 - !app-text/hd2u
53 - virtual/libintl"
54 -
55 -DEPEND="
56 - ${RDEPEND}
57 - test? ( virtual/perl-Test-Simple )
58 -"
59 -BDEPEND="
60 - dev-lang/perl
61 - nls? ( sys-devel/gettext )
62 -"
63 -
64 -RESTRICT="!test? ( test )"
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 - plocale_for_each_disabled_locale 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_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 -}