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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Jan 1 18:55:47 2013 UTC (2 years, 2 months ago) by armin76
Branch: MAIN
Changes since 1.10: +3 -3 lines
s390/sh stable wrt #441106

(Portage version: 2.1.11.38/cvs/Linux ia64, signed Manifest commit with key F6AD3240)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-6.0.2.ebuild,v 1.10 2012/12/30 14:34:52 ago Exp $
4
5 EAPI=4
6
7 inherit 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 sed \
30 -e '/^LDFLAGS/s|=|+=|' \
31 -e '/^CC/s|=|?=|' \
32 -e '/CFLAGS_OS \+=/d' \
33 -e '/LDFLAGS_EXTRA \+=/d' \
34 -e "/^CFLAGS/s|-O2|${CFLAGS}|" \
35 -i Makefile || die
36
37 if use debug ; then
38 sed -e "/^DEBUG/s:0:1:" \
39 -e "/EXTRA_CFLAGS +=/s:-g::" \
40 -i Makefile || die
41 fi
42
43 tc-export CC
44 }
45
46 lintl() {
47 # same logic as from virtual/libintl
48 use !elibc_glibc && use !elibc_uclibc && echo "-lintl"
49 }
50
51 src_compile() {
52 emake prefix="${EPREFIX}/usr" \
53 $(use nls && echo "LDFLAGS_EXTRA=$(lintl)" || echo "ENABLE_NLS=")
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \
58 $(use nls || echo "ENABLE_NLS=") install
59 }

  ViewVC Help
Powered by ViewVC 1.1.20