public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/
Date: Sun, 29 Sep 2024 16:23:54 +0000 (UTC)	[thread overview]
Message-ID: <1727627017.c7b10102cfb661d0ed239659ef1b969c7c2db0b4.arthurzam@gentoo> (raw)

commit:     c7b10102cfb661d0ed239659ef1b969c7c2db0b4
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 16:11:58 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 16:23:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b10102

app-text/dos2unix: add 7.5.2

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-text/dos2unix/Manifest              |  1 +
 app-text/dos2unix/dos2unix-7.5.2.ebuild | 89 +++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/app-text/dos2unix/Manifest b/app-text/dos2unix/Manifest
index c3777c9a88a1..0e7a78503561 100644
--- a/app-text/dos2unix/Manifest
+++ b/app-text/dos2unix/Manifest
@@ -1,2 +1,3 @@
 DIST dos2unix-7.5.0.tar.gz 957576 BLAKE2B 5a674d61c9f911a2cb9c20c363fdc0e0affd3b6f26531d37a231aedb5e6a7428116b139d4af12ee32f4107f78ea079fb7a8d008c9630375f4afbc2afa0afb39f SHA512 914cbc3255045b1b87ad702c70844b059f9435ccfe636dc67514f092090b86a9f271789fcde28a9ead4d94a869fb92e334aa115d3cfe24133338260ad2233763
 DIST dos2unix-7.5.1.tar.gz 959228 BLAKE2B 4f4a334a295b702d0540e58a0a86dcf091583d6c2b64f6de9bea883dfe0d70bfa05e8e5b9c8fb867bfd5e66b2eba562da1ca45c60f97bac67bdb275d66de0fe0 SHA512 733d163fff4effdf8acb382abec9bcd23f594fa17502e9dde2f24d3326aeb7653eee353bef812090ab8dc055136d236b40c2f778deea4ac026c2eed471e763b5
+DIST dos2unix-7.5.2.tar.gz 991485 BLAKE2B 2d88e88960d5deb6531b6eb52f646d0c8f40c361800e2f26632577e9187999599752d30b0c7e4e1f18c0127578311b8be6910e54535c333e092c3ebb70329173 SHA512 d76d799435dd248850f72cc50af2144a51e99f04ea83a1447c4edd828625c83f0afba367da51aa83defced4cbf34f3b75387a0821010f7b212225571036efbb2

diff --git a/app-text/dos2unix/dos2unix-7.5.2.ebuild b/app-text/dos2unix/dos2unix-7.5.2.ebuild
new file mode 100644
index 000000000000..1f2978127daa
--- /dev/null
+++ b/app-text/dos2unix/dos2unix-7.5.2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2024 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
+	https://downloads.sourceforge.net/${PN}/${P/_/-}.tar.gz
+"
+S=${WORKDIR}/${P/_/-}
+
+LICENSE="BSD-2"
+SLOT="0"
+[[ "${PV}" == *_beta* ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="debug nls test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	!app-text/hd2u
+	virtual/libintl
+"
+DEPEND="
+	${RDEPEND}
+	test? ( virtual/perl-Test-Simple )
+"
+BDEPEND="
+	dev-lang/perl
+	nls? ( sys-devel/gettext )
+"
+
+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
+}


             reply	other threads:[~2024-09-29 16:23 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-29 16:23 Arthur Zamarin [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
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-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=1727627017.c7b10102cfb661d0ed239659ef1b969c7c2db0b4.arthurzam@gentoo \
    --to=arthurzam@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