portage-overlay

personal portage ebuild repository
git clone anongit@rnpnr.xyz:portage-overlay.git
Log | Files | Refs | Feed | README

dmenu-9999.ebuild (790B)


      1 EAPI=8
      2 inherit git-r3 savedconfig
      3 
      4 DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System"
      5 HOMEPAGE="https://tools.suckless.org/dmenu/"
      6 EGIT_REPO_URI="https://git.suckless.org/dmenu"
      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 	x11-base/xorg-proto
     21 "
     22 
     23 src_prepare() {
     24 	default
     25 
     26 	if use static; then
     27 		export CFLAGS="${CFLAGS} -static"
     28 		export LDFLAGS="${LDFLAGS} -static"
     29 	fi
     30 
     31 	if ! use xinerama; then
     32 		sed /^XINERAMA/d <config.mk >config.mk.new
     33 		mv config.mk.new config.mk
     34 	fi
     35 
     36 	restore_config config.h
     37 }
     38 
     39 src_install() {
     40 	emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install
     41 
     42 	save_config config.h
     43 }