1 |
commit: ac8db9f173bf3d3dbe9c8c699a7226a46e62b878 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 24 21:30:35 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 24 21:30:43 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac8db9f1 |
7 |
|
8 |
app-editors/nano: add USE=static support |
9 |
|
10 |
app-editors/nano/nano-2.4.2.ebuild | 16 ++++++++++------ |
11 |
1 file changed, 10 insertions(+), 6 deletions(-) |
12 |
|
13 |
diff --git a/app-editors/nano/nano-2.4.2.ebuild b/app-editors/nano/nano-2.4.2.ebuild |
14 |
index fa4b5d0..b18cbc7 100644 |
15 |
--- a/app-editors/nano/nano-2.4.2.ebuild |
16 |
+++ b/app-editors/nano/nano-2.4.2.ebuild |
17 |
@@ -4,7 +4,7 @@ |
18 |
|
19 |
EAPI="4" |
20 |
|
21 |
-inherit eutils |
22 |
+inherit eutils flag-o-matic |
23 |
if [[ ${PV} == "9999" ]] ; then |
24 |
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano" |
25 |
inherit subversion autotools |
26 |
@@ -19,21 +19,25 @@ HOMEPAGE="http://www.nano-editor.org/ https://www.gentoo.org/doc/en/nano-basics- |
27 |
LICENSE="GPL-3" |
28 |
SLOT="0" |
29 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
30 |
-IUSE="debug justify +magic minimal ncurses nls slang +spell unicode" |
31 |
+IUSE="debug justify +magic minimal ncurses nls slang +spell static unicode" |
32 |
|
33 |
-RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?] |
34 |
- magic? ( sys-apps/file ) |
35 |
+LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0[unicode?] |
36 |
+ sys-libs/ncurses:0[static-libs(+)] |
37 |
+ magic? ( sys-apps/file[static-libs(+)] ) |
38 |
nls? ( virtual/libintl ) |
39 |
- !ncurses? ( slang? ( sys-libs/slang ) )" |
40 |
+ !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )" |
41 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
42 |
DEPEND="${RDEPEND} |
43 |
nls? ( sys-devel/gettext ) |
44 |
- virtual/pkgconfig" |
45 |
+ virtual/pkgconfig |
46 |
+ static? ( ${LIB_DEPEND} )" |
47 |
|
48 |
src_prepare() { |
49 |
epatch_user |
50 |
} |
51 |
|
52 |
src_configure() { |
53 |
+ use static && append-ldflags -static |
54 |
eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic) |
55 |
local myconf=() |
56 |
case ${CHOST} in |