1 |
commit: 9003c5f46a4b302330a295e1276ba1ab6723c8b9 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 04:14:47 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 04:18:22 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9003c5f4 |
7 |
|
8 |
app-text/dos2unix: Remove app-text/unix2dos blocker from DEPEND. Fixes bug 525826. |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
app-text/dos2unix/dos2unix-7.3-r1.ebuild | 60 ++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/app-text/dos2unix/dos2unix-7.3-r1.ebuild b/app-text/dos2unix/dos2unix-7.3-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..d8a8be9 |
19 |
--- /dev/null |
20 |
+++ b/app-text/dos2unix/dos2unix-7.3-r1.ebuild |
21 |
@@ -0,0 +1,60 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit eutils toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="Convert DOS or MAC text files to UNIX format or vice versa" |
31 |
+HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html http://sourceforge.net/projects/dos2unix/" |
32 |
+SRC_URI=" |
33 |
+ http://www.xs4all.nl/~waterlan/${PN}/${P}.tar.gz |
34 |
+ mirror://sourceforge/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="BSD-2" |
37 |
+SLOT="0" |
38 |
+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" |
39 |
+IUSE="debug nls test" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ !app-text/hd2u |
43 |
+ virtual/libintl" |
44 |
+ |
45 |
+DEPEND=" |
46 |
+ ${RDEPEND} |
47 |
+ nls? ( sys-devel/gettext ) |
48 |
+ test? ( virtual/perl-Test-Simple ) |
49 |
+ dev-lang/perl" |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ sed \ |
53 |
+ -e '/^LDFLAGS/s|=|+=|' \ |
54 |
+ -e '/CFLAGS_OS \+=/d' \ |
55 |
+ -e '/LDFLAGS_EXTRA \+=/d' \ |
56 |
+ -e "/^CFLAGS/s|-O2|${CFLAGS}|" \ |
57 |
+ -i Makefile || die |
58 |
+ |
59 |
+ if use debug ; then |
60 |
+ sed -e "/^DEBUG/s:0:1:" \ |
61 |
+ -e "/EXTRA_CFLAGS +=/s:-g::" \ |
62 |
+ -i Makefile || die |
63 |
+ fi |
64 |
+ |
65 |
+ tc-export CC |
66 |
+} |
67 |
+ |
68 |
+lintl() { |
69 |
+ # same logic as from virtual/libintl |
70 |
+ use !elibc_glibc && use !elibc_uclibc && echo "-lintl" |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ emake prefix="${EPREFIX}/usr" \ |
75 |
+ $(usex nls "LDFLAGS_EXTRA=$(lintl)" "ENABLE_NLS=") |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \ |
80 |
+ $(usex nls "" "ENABLE_NLS=") install |
81 |
+} |