From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/
Date: Fri, 19 May 2023 05:08:04 +0000 (UTC) [thread overview]
Message-ID: <1684469798.7b18639d8c12a5b0e092033216418ca8a70175a4.sam@gentoo> (raw)
commit: 7b18639d8c12a5b0e092033216418ca8a70175a4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 19 04:16:38 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 19 04:16:38 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b18639d
app-text/dos2unix: add 7.5.0
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-text/dos2unix/Manifest | 1 +
app-text/dos2unix/dos2unix-7.5.0.ebuild | 90 +++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+)
diff --git a/app-text/dos2unix/Manifest b/app-text/dos2unix/Manifest
index 2bee42780ecf..385d29c91f42 100644
--- a/app-text/dos2unix/Manifest
+++ b/app-text/dos2unix/Manifest
@@ -1 +1,2 @@
DIST dos2unix-7.4.4.tar.gz 914647 BLAKE2B eb8d33344780bb15201eed571d7a6a21db0bc13e8e94388c70e1daea84cc0d1dfb9f16b7ed1cd216bb31ffd84dee706e7f2fb46050a299602f7c67c53915ded9 SHA512 e7a6b1d90bf0a32aa53b22caa1660dcf58c5874d02a45e80f4cc811cae9bd7b0cb8144301fb6808798100a057c03210925da1d8461e380dff1059f6bee086f55
+DIST dos2unix-7.5.0.tar.gz 957576 BLAKE2B 5a674d61c9f911a2cb9c20c363fdc0e0affd3b6f26531d37a231aedb5e6a7428116b139d4af12ee32f4107f78ea079fb7a8d008c9630375f4afbc2afa0afb39f SHA512 914cbc3255045b1b87ad702c70844b059f9435ccfe636dc67514f092090b86a9f271789fcde28a9ead4d94a869fb92e334aa115d3cfe24133338260ad2233763
diff --git a/app-text/dos2unix/dos2unix-7.5.0.ebuild b/app-text/dos2unix/dos2unix-7.5.0.ebuild
new file mode 100644
index 000000000000..ab2e52f35899
--- /dev/null
+++ b/app-text/dos2unix/dos2unix-7.5.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PLOCALES="ca da de eo es fr fur hu ja ka ko nb nl pl pt_BR ro ru sr sv uk vi zh_CN zh_TW"
+
+inherit plocale toolchain-funcs
+
+DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa"
+HOMEPAGE="https://www.xs4all.nl/~waterlan/dos2unix.html https://sourceforge.net/projects/dos2unix/"
+SRC_URI="
+ https://www.xs4all.nl/~waterlan/${PN}/${P/_/-}.tar.gz
+ mirror://sourceforge/${PN}/${P/_/-}.tar.gz
+"
+S="${WORKDIR}/${P/_/-}"
+
+LICENSE="BSD-2"
+SLOT="0"
+[[ "${PV}" == *_beta* ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris"
+IUSE="debug nls test"
+
+RDEPEND="
+ !app-text/hd2u
+ virtual/libintl"
+
+DEPEND="
+ ${RDEPEND}
+ test? ( virtual/perl-Test-Simple )
+"
+BDEPEND="
+ dev-lang/perl
+ nls? ( sys-devel/gettext )
+"
+
+RESTRICT="!test? ( test )"
+
+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; }
+ plocale_for_each_disabled_locale 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_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
+}
next reply other threads:[~2023-05-19 5:08 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 5:08 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-07 20:09 [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/ Arthur Zamarin
2025-02-07 20:09 Arthur Zamarin
2024-11-15 10:50 Arthur Zamarin
2024-11-15 9:21 Arthur Zamarin
2024-11-15 9:21 Arthur Zamarin
2024-11-15 9:21 Arthur Zamarin
2024-11-15 9:20 Arthur Zamarin
2024-09-29 16:23 Arthur Zamarin
2024-09-29 16:23 Arthur Zamarin
2023-12-23 16:41 Arthur Zamarin
2023-12-23 15:50 Arthur Zamarin
2023-12-23 15:50 Arthur Zamarin
2023-12-23 15:47 Arthur Zamarin
2023-12-23 15:46 Arthur Zamarin
2023-12-23 15:46 Arthur Zamarin
2023-12-23 15:46 Arthur Zamarin
2023-08-31 5:26 Sam James
2023-08-27 14:24 David Seifert
2023-05-19 5:08 Sam James
2023-04-16 12:11 WANG Xuerui
2023-03-24 14:08 Arthur Zamarin
2023-03-24 14:01 Arthur Zamarin
2023-03-22 5:44 Sam James
2023-02-13 4:23 Sam James
2022-08-17 16:21 Matt Turner
2022-08-02 6:52 Agostino Sarubbo
2022-08-01 8:04 Agostino Sarubbo
2022-08-01 8:01 Agostino Sarubbo
2022-07-31 20:17 Arthur Zamarin
2022-07-31 20:16 Arthur Zamarin
2022-07-31 17:12 Arthur Zamarin
2022-07-31 17:12 Arthur Zamarin
2022-06-06 1:20 Sam James
2021-04-19 19:12 Sam James
2021-02-14 14:53 Sam James
2021-01-05 20:51 Sam James
2021-01-03 12:10 Sergei Trofimovich
2021-01-03 11:51 Sergei Trofimovich
2021-01-03 1:18 Sam James
2021-01-01 11:21 Sergei Trofimovich
2020-12-29 20:38 Sam James
2020-10-13 14:19 Lars Wendler
2019-11-04 8:49 Lars Wendler
2019-11-04 8:13 Lars Wendler
2019-11-04 8:13 Lars Wendler
2019-09-25 22:38 Lars Wendler
2017-12-17 15:55 Patrice Clement
2017-12-05 5:44 Markus Meier
2017-10-22 21:42 Tobias Klausmann
2017-10-14 17:20 Sergei Trofimovich
2017-10-13 14:31 Thomas Deutschmann
2017-10-13 0:13 Sergei Trofimovich
2017-10-12 19:23 Manuel Rüger
2017-10-11 14:41 Sergei Trofimovich
2017-10-11 7:47 Lars Wendler
2017-07-27 10:37 Fabian Groffen
2017-07-05 7:26 Lars Wendler
2017-04-12 11:10 Tim Harder
2017-01-14 13:14 Jeroen Roovers
2016-12-24 10:26 Agostino Sarubbo
2016-12-22 9:34 Agostino Sarubbo
2016-12-20 9:44 Agostino Sarubbo
2016-12-19 15:12 Agostino Sarubbo
2016-12-19 14:35 Agostino Sarubbo
2016-12-18 15:57 Agostino Sarubbo
2016-12-17 12:20 Aaron Bauman
2016-12-14 9:14 Tobias Klausmann
2016-08-15 14:15 Anthony G. Basile
2016-05-25 7:42 Lars Wendler
2016-05-25 7:42 Lars Wendler
2016-03-28 22:03 Mike Frysinger
2016-02-14 13:42 Lars Wendler
2016-02-14 13:42 Lars Wendler
2015-11-21 9:14 Lars Wendler
2015-11-12 11:21 Justin Lecher
2015-11-12 10:51 Agostino Sarubbo
2015-11-05 21:01 Markus Meier
2015-10-10 15:53 Mikle Kolyada
2015-09-30 22:17 Lars Wendler
2015-09-30 22:17 Lars Wendler
2015-09-28 15:30 Tobias Klausmann
2015-09-28 4:54 Jeroen Roovers
2015-09-27 5:18 Jeroen Roovers
2015-09-26 18:21 Mikle Kolyada
2015-09-25 14:29 Agostino Sarubbo
2015-09-25 4:19 Patrice Clement
2015-09-25 4:19 Patrice Clement
2015-08-24 10:03 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1684469798.7b18639d8c12a5b0e092033216418ca8a70175a4.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox