/[gentoo-x86]/app-text/dos2unix/dos2unix-5.3.1.ebuild
Gentoo

Contents of /app-text/dos2unix/dos2unix-5.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Jul 27 05:50:02 2012 UTC (9 months, 3 weeks ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Version bump. Removed old

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-5.3.1.ebuild,v 1.9 2012/03/03 16:02:04 ranger Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa"
10 HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html http://sourceforge.net/projects/dos2unix/"
11 SRC_URI="
12 http://www.xs4all.nl/~waterlan/${PN}/${P}.tar.gz
13 mirror://sourceforge/${PN}/${P}.tar.gz"
14
15 LICENSE="BSD-2"
16 SLOT="0"
17 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"
18 IUSE="debug nls"
19
20 RDEPEND="
21 !app-text/hd2u
22 !app-text/unix2dos
23 virtual/libintl"
24 DEPEND="
25 ${RDEPEND}
26 dev-lang/perl"
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${PN}-5.3.1-fix_debug_build.patch
30
31 sed \
32 -e '/^LDFLAGS/s|=|+=|' \
33 -e '/^CC/s|=|?=|' \
34 -e '/CFLAGS_OS \+=/d' \
35 -e '/LDFLAGS_EXTRA \+=/d' \
36 -e "/^CFLAGS/s|-O2|${CFLAGS}|" \
37 -i "${S}"/Makefile || die
38 tc-export CC
39 use debug && sed "/DEBUG/s:0:1:g" -i Makefile
40 }
41
42 lintl() {
43 # same logic as from virtual/libintl
44 use !elibc_glibc && use !elibc_uclibc && echo "-lintl"
45 }
46
47 src_compile() {
48 emake prefix="${EPREFIX}/usr" \
49 $(use nls && echo "LDFLAGS_EXTRA=$(lintl)" || echo "ENABLE_NLS=")
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \
54 $(use nls || echo "ENABLE_NLS=") install
55 }

  ViewVC Help
Powered by ViewVC 1.1.13