commit: 430a9c7ef7c514dc66ef596599fcccd5bb00e530
parent: 06e6ab57fac24aaec1f3b5808548fe57e20b6ff8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 26 Feb 2019 12:11:06 +0100
dev-libs/libtermkey: Bump to 0.21.1 (based on ::gentoo)
Diffstat:
3 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/dev-libs/libtermkey/Manifest b/dev-libs/libtermkey/Manifest
@@ -0,0 +1 @@
+DIST libtermkey-0.21.1.tar.gz 45209 BLAKE2B 04197fc019180a6745df2afc5e62fb6508455fe0483db9523dfbd8ce06199abb5295202c713169c54c14c446d35d075a6fa3889a96a160eac399d19234004776 SHA512 9cd02b7d0f0304ea9d14affabba4e0f742295e6d43c20450a71cb575bb95d28da2c757f7708c83e6de10ed8157efd66e1174b8c4e5ae33f75e52b8d2396cdfce
diff --git a/dev-libs/libtermkey/libtermkey-0.21.1.ebuild b/dev-libs/libtermkey/libtermkey-0.21.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic
+
+DESCRIPTION="Library for easy processing of keyboard entry from terminal-based programs"
+HOMEPAGE="http://www.leonerd.org.uk/code/libtermkey/"
+SRC_URI="http://www.leonerd.org.uk/code/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="demos static-libs"
+
+RDEPEND="dev-libs/unibilium:="
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+ virtual/pkgconfig
+ demos? ( dev-libs/glib:2 )"
+
+src_prepare() {
+ default
+
+ if ! use demos; then
+ sed -e '/^all:/s:$(DEMOS)::' -i Makefile || die
+ fi
+}
+
+src_compile() {
+ append-flags -fPIC
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" all
+}
+
+src_install() {
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" DESTDIR="${D}" install
+ use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}.a || die
+ rm "${ED}"/usr/$(get_libdir)/${PN}.la || die
+}
diff --git a/dev-libs/libtermkey/metadata.xml b/dev-libs/libtermkey/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@hacktivis.me</email>
+ <name>Haelwenn (lanodan) Monnier</name>
+ </maintainer>
+ <use>
+ <flag name="demos">Install demos, which pulls in <pkg>dev-libs/glib</pkg></flag>
+ </use>
+</pkgmetadata>