diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2011-02-01 19:24:13 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2011-02-01 19:24:13 +0000 |
commit | 907c42db6610575cff12a716a5a00e782ce3041f (patch) | |
tree | a95faf0d213c89ef707f547ab95b9a80b24ef320 /app-text/dos2unix | |
parent | Version bump. (diff) | |
download | gentoo-2-907c42db6610575cff12a716a5a00e782ce3041f.tar.gz gentoo-2-907c42db6610575cff12a716a5a00e782ce3041f.tar.bz2 gentoo-2-907c42db6610575cff12a716a5a00e782ce3041f.zip |
version bump
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'app-text/dos2unix')
-rw-r--r-- | app-text/dos2unix/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/dos2unix/dos2unix-5.2.ebuild | 52 |
2 files changed, 58 insertions, 1 deletions
diff --git a/app-text/dos2unix/ChangeLog b/app-text/dos2unix/ChangeLog index 8d595d9052a3..0d4d8b2aca6c 100644 --- a/app-text/dos2unix/ChangeLog +++ b/app-text/dos2unix/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/dos2unix # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/ChangeLog,v 1.58 2011/01/13 20:45:19 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/ChangeLog,v 1.59 2011/02/01 19:24:13 polynomial-c Exp $ + +*dos2unix-5.2 (01 Feb 2011) + + 01 Feb 2011; Lars Wendler <polynomial-c@gentoo.org> +dos2unix-5.2.ebuild: + non-maintainer commit: version bump. 13 Jan 2011; Brent Baude <ranger@gentoo.org> dos2unix-5.1.1.ebuild: stable ppc, bug 350646 diff --git a/app-text/dos2unix/dos2unix-5.2.ebuild b/app-text/dos2unix/dos2unix-5.2.ebuild new file mode 100644 index 000000000000..b00b93584c33 --- /dev/null +++ b/app-text/dos2unix/dos2unix-5.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-5.2.ebuild,v 1.1 2011/02/01 19:24:13 polynomial-c Exp $ + +EAPI="3" + +inherit 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="nls" + +DEPEND="virtual/libintl" +RDEPEND=" + ${DEPEND} + !app-text/hd2u + !app-text/unix2dos" + +src_prepare() { + sed \ + -e '/^LDFLAGS/s|=|+=|' \ + -e '/^CC/s|=|?=|' \ + -e '/CFLAGS_OS \+=/d' \ + -e '/LDFLAGS_EXTRA \+=/d' \ + -e "/^CFLAGS/s|-O2|${CFLAGS}|" \ + -i "${S}"/Makefile || die + tc-export CC +} + +lintl() { + # same logic as from virtual/libintl + use !elibc_glibc && use !elibc_uclibc && echo "-lintl" +} + +src_compile() { + emake prefix="${EPREFIX}"/usr \ + $(use nls && echo "LDFLAGS_EXTRA=$(lintl)" || echo "ENABLE_NLS=") \ + || die +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}"/usr \ + $(use nls || echo "ENABLE_NLS=") install \ + || die "emake install failed" +} |