st-9999.ebuild (681B)
1 EAPI=8 2 inherit git-r3 savedconfig 3 4 DESCRIPTION="simple terminal implementation for X" 5 HOMEPAGE="https://st.suckless.org/" 6 EGIT_REPO_URI="https://git.suckless.org/st" 7 8 LICENSE="MIT-with-advertising" 9 SLOT="0" 10 IUSE="savedconfig static" 11 12 RDEPEND=" 13 >=sys-libs/ncurses-6.0:0= 14 media-libs/fontconfig 15 x11-libs/libX11 16 x11-libs/libXext 17 x11-libs/libXft 18 " 19 DEPEND=" 20 ${RDEPEND} 21 x11-base/xorg-proto 22 " 23 BDEPEND="virtual/pkgconfig" 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 restore_config config.h 34 } 35 36 src_install() { 37 emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install 38 39 save_config config.h 40 }