pinentry-dmenu-9999.ebuild (833B)
1 EAPI=8 2 inherit git-r3 savedconfig 3 4 DESCRIPTION="A pinentry program with the charm of dmenu" 5 HOMEPAGE="https://github.com/rnpnr/pinentry-dmenu" 6 EGIT_REPO_URI="https://github.com/rnpnr/pinentry-dmenu.git" 7 8 LICENSE="MIT" 9 SLOT="0" 10 IUSE="savedconfig static xinerama" 11 12 RDEPEND=" 13 media-libs/fontconfig 14 x11-libs/libX11 15 x11-libs/libXft 16 xinerama? ( x11-libs/libXinerama ) 17 " 18 DEPEND=" 19 ${RDEPEND} 20 >=dev-libs/libassuan-2.1 21 >=dev-libs/libgpg-error-1.17 22 x11-base/xorg-proto 23 " 24 25 src_prepare() { 26 default 27 28 if use static; then 29 export CFLAGS="${CFLAGS} -static" 30 export LDFLAGS="${LDFLAGS} -static" 31 fi 32 33 if ! use xinerama; then 34 sed /^XINERAMA/d <config.mk >config.mk.new 35 mv config.mk.new config.mk 36 fi 37 38 restore_config config.h 39 } 40 41 src_install() { 42 emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install 43 44 save_config config.h 45 }