dev-libs/libgnt: Initial commit

Use same KEYWORDS like in pidgin as this is an outsourced pidgin plugin

Bug: https://bugs.gentoo.org/727878
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2020-06-11 20:58:18 +02:00
parent 1363131892
commit caf07e7998
5 changed files with 79 additions and 0 deletions

1
dev-libs/libgnt/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST libgnt-2.14.0.tar.xz 102444 BLAKE2B 303dc33e60571ba4b5b9cc8ce477807b9b2ed6b4d1ed14e40c43e146a6d3d156741597befdf3e6c0c6816e9d43955f57f9e1b61e3f1f2d2fc451bf53f7236022 SHA512 0d9c5550374696a0e6ede5246cda3c372d7055d21b9ffaf10be88d6a469bdf18c7dd1113ec612acf4889c0e5686ea87bb0e8348ca8985fd5ff8913afc5813b38

View File

@@ -0,0 +1,15 @@
--- libgnt-2.14.0/meson.build
+++ libgnt-2.14.0/meson.build
@@ -231,4 +231,6 @@
subdir('wms')
subdir('test')
-subdir('doc')
+if get_option('doc')
+ subdir('doc')
+endif
--- libgnt-2.14.0/meson_options.txt
+++ libgnt-2.14.0/meson_options.txt
@@ -0,0 +1,2 @@
+option('doc', type : 'boolean', value : true,
+ description : 'build documentation with gtk-doc')

View File

@@ -0,0 +1,18 @@
--- libgnt-2.14.0/meson.build
+++ libgnt-2.14.0/meson.build
@@ -72,6 +72,7 @@
ncurses_available = true
ncurses_inc = []
ncurses_libs = [
+ compiler.find_library('tinfow', required : false),
compiler.find_library('ncursesw', required : false),
compiler.find_library('panelw', required : false)
]
@@ -113,6 +114,7 @@
else
# ncursesw was not found. Look for plain old ncurses
ncurses_libs = [
+ compiler.find_library('tinfo', required : false),
compiler.find_library('ncurses', required : false),
compiler.find_library('panel', required : false)
]

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson
DESCRIPTION="Pidgin's GLib Ncurses Toolkit"
HOMEPAGE="https://bitbucket.org/pidgin/libgnt"
SRC_URI="mirror://sourceforge/pidgin/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="doc"
RDEPEND="
dev-libs/glib:2
dev-libs/libxml2
sys-libs/ncurses:0=
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}/${PN}-2.14.0-optional_docs.patch"
"${FILESDIR}/${PN}-2.14.0-tinfo.patch"
)
src_configure() {
local emesonargs=(
$(meson_use doc)
)
meson_src_configure
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>polynomial-c@gentoo.org</email>
<name>Lars Wendler</name>
</maintainer>
</pkgmetadata>