From ac8db9f173bf3d3dbe9c8c699a7226a46e62b878 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Sep 2015 17:30:35 -0400 Subject: [PATCH] app-editors/nano: add USE=static support --- app-editors/nano/nano-2.4.2.ebuild | 16 ++++++++++------ 1 file 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 -- 2.26.2