logo

overlay

My (experimental) gentoo overlay

libtermkey-0.21.1.ebuild (1032B)


      1 # Copyright 1999-2018 Gentoo Foundation
      2 # Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
      3 # Distributed under the terms of the GNU General Public License v2
      4 
      5 EAPI=6
      6 inherit flag-o-matic
      7 
      8 DESCRIPTION="Library for easy processing of keyboard entry from terminal-based programs"
      9 HOMEPAGE="http://www.leonerd.org.uk/code/libtermkey/"
     10 SRC_URI="http://www.leonerd.org.uk/code/${PN}/${P}.tar.gz"
     11 
     12 LICENSE="MIT"
     13 SLOT="0"
     14 KEYWORDS="amd64 x86"
     15 IUSE="demos static-libs"
     16 
     17 RDEPEND="dev-libs/unibilium:="
     18 DEPEND="${RDEPEND}
     19 	sys-devel/libtool
     20 	virtual/pkgconfig
     21 	demos? ( dev-libs/glib:2 )"
     22 
     23 src_prepare() {
     24 	default
     25 
     26 	if ! use demos; then
     27 		sed -e '/^all:/s:$(DEMOS)::' -i Makefile || die
     28 	fi
     29 }
     30 
     31 src_compile() {
     32 	append-flags -fPIC
     33 	emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" all
     34 }
     35 
     36 src_install() {
     37 	emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" DESTDIR="${D}" install
     38 	use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}.a || die
     39 	rm "${ED}"/usr/$(get_libdir)/${PN}.la || die
     40 }