From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 65CB013881C for ; Fri, 25 Sep 2015 04:19:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42D8021C0AE; Fri, 25 Sep 2015 04:19:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D33D121C0AE for ; Fri, 25 Sep 2015 04:19:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DFFD3340686 for ; Fri, 25 Sep 2015 04:19:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7069E1F5 for ; Fri, 25 Sep 2015 04:19:31 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1443154702.9003c5f46a4b302330a295e1276ba1ab6723c8b9.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dos2unix/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/dos2unix/dos2unix-7.3-r1.ebuild X-VCS-Directories: app-text/dos2unix/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 9003c5f46a4b302330a295e1276ba1ab6723c8b9 X-VCS-Branch: master Date: Fri, 25 Sep 2015 04:19:31 +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-Archives-Salt: 90327da6-c943-4aa1-9b24-fd5d6f1b3dad X-Archives-Hash: 55312f38e177c1457de6b18114fe7db1 commit: 9003c5f46a4b302330a295e1276ba1ab6723c8b9 Author: Patrice Clement gentoo org> AuthorDate: Fri Sep 25 04:14:47 2015 +0000 Commit: Patrice Clement gentoo org> CommitDate: Fri Sep 25 04:18:22 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9003c5f4 app-text/dos2unix: Remove app-text/unix2dos blocker from DEPEND. Fixes bug 525826. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement gentoo.org> app-text/dos2unix/dos2unix-7.3-r1.ebuild | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/app-text/dos2unix/dos2unix-7.3-r1.ebuild b/app-text/dos2unix/dos2unix-7.3-r1.ebuild new file mode 100644 index 0000000..d8a8be9 --- /dev/null +++ b/app-text/dos2unix/dos2unix-7.3-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa" +HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html http://sourceforge.net/projects/dos2unix/" +SRC_URI=" + http://www.xs4all.nl/~waterlan/${PN}/${P}.tar.gz + mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" +IUSE="debug nls test" + +RDEPEND=" + !app-text/hd2u + virtual/libintl" + +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) + test? ( virtual/perl-Test-Simple ) + dev-lang/perl" + +src_prepare() { + 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_uclibc && 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 +}