From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CF33115806E for ; Fri, 19 May 2023 05:08:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B003E0878; Fri, 19 May 2023 05:08:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E06B8E0878 for ; Fri, 19 May 2023 05:08:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5EAB340E05 for ; Fri, 19 May 2023 05:08:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0483BA6C for ; Fri, 19 May 2023 05:08:04 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1684469798.7b18639d8c12a5b0e092033216418ca8a70175a4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/dos2unix/Manifest app-text/dos2unix/dos2unix-7.5.0.ebuild X-VCS-Directories: app-text/dos2unix/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7b18639d8c12a5b0e092033216418ca8a70175a4 X-VCS-Branch: master Date: Fri, 19 May 2023 05:08:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 035d3039-6df6-4ed3-aa24-56fb27f59cd2 X-Archives-Hash: 2cc607313ed8b479619ef988b5ba4484 commit: 7b18639d8c12a5b0e092033216418ca8a70175a4 Author: Sam James gentoo org> AuthorDate: Fri May 19 04:16:38 2023 +0000 Commit: Sam James gentoo 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 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 +}