summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-24 17:30:35 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-24 17:30:43 -0400
commitac8db9f173bf3d3dbe9c8c699a7226a46e62b878 (patch)
tree16e837792917410403abddefa0915e86aa891548 /app-editors/nano
parentdev-java/dict4j: Initial commit. Fixes bug 503758. (diff)
downloadgentoo-ac8db9f173bf3d3dbe9c8c699a7226a46e62b878.tar.gz
gentoo-ac8db9f173bf3d3dbe9c8c699a7226a46e62b878.tar.bz2
gentoo-ac8db9f173bf3d3dbe9c8c699a7226a46e62b878.zip
app-editors/nano: add USE=static support
Diffstat (limited to 'app-editors/nano')
-rw-r--r--app-editors/nano/nano-2.4.2.ebuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/app-editors/nano/nano-2.4.2.ebuild b/app-editors/nano/nano-2.4.2.ebuild
index fa4b5d031ce3..b18cbc77ad0d 100644
--- a/app-editors/nano/nano-2.4.2.ebuild
+++ b/app-editors/nano/nano-2.4.2.ebuild
@@ -4,7 +4,7 @@
EAPI="4"
-inherit eutils
+inherit eutils flag-o-matic
if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
inherit subversion autotools
@@ -19,21 +19,25 @@ HOMEPAGE="http://www.nano-editor.org/ https://www.gentoo.org/doc/en/nano-basics-
LICENSE="GPL-3"
SLOT="0"
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"
-IUSE="debug justify +magic minimal ncurses nls slang +spell unicode"
+IUSE="debug justify +magic minimal ncurses nls slang +spell static unicode"
-RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?]
- magic? ( sys-apps/file )
+LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0[unicode?]
+ sys-libs/ncurses:0[static-libs(+)]
+ magic? ( sys-apps/file[static-libs(+)] )
nls? ( virtual/libintl )
- !ncurses? ( slang? ( sys-libs/slang ) )"
+ !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
- virtual/pkgconfig"
+ virtual/pkgconfig
+ static? ( ${LIB_DEPEND} )"
src_prepare() {
epatch_user
}
src_configure() {
+ use static && append-ldflags -static
eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic)
local myconf=()
case ${CHOST} in