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
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