Verified Commit 5c0b0841 authored by flussence's avatar flussence

gnome-extra/gucharmap: add USE=system-unicode

Had to borrow gen-guch-unicode-tables from a newer version of gucharmap
and fix it up to work with gtk2, and it's larger than repoman likes, but
it works.
parent 3f345ac8
......@@ -63,7 +63,7 @@ A good character map program (nicer than KCharSelect, which is a Windows clone).
The Gentoo ebuild for this is GTK+3-only for no good reason,
so I wrote a better one from scratch that respects the user's choice.
Make sure to add `gucharmap::gentoo` to your `package.mask`.
Caveat: only supports old versions of Unicode. I may try to fix this.
Now supports modern Unicode versions! (just leave `system-unicode` enabled, which is the default)
`media-video/obs-studio` — https://github.com/jp9000/obs-studio[OBS Studio]::
Builds OBS from Git.
......
This diff is collapsed.
--- a/gucharmap/gucharmap-unicode-info.h 2011-01-04 16:58:25.000000000 +0000
+++ b/gucharmap/gucharmap-unicode-info.h 2018-01-17 20:24:04.414372655 +0000
@@ -41,7 +41,14 @@
GUCHARMAP_UNICODE_VERSION_5_1,
GUCHARMAP_UNICODE_VERSION_5_2,
GUCHARMAP_UNICODE_VERSION_6_0,
- GUCHARMAP_UNICODE_VERSION_LATEST = GUCHARMAP_UNICODE_VERSION_6_0 /* private, will move forward with each revision */
+ GUCHARMAP_UNICODE_VERSION_6_1,
+ GUCHARMAP_UNICODE_VERSION_6_2,
+ GUCHARMAP_UNICODE_VERSION_6_3,
+ GUCHARMAP_UNICODE_VERSION_7_0,
+ GUCHARMAP_UNICODE_VERSION_8_0,
+ GUCHARMAP_UNICODE_VERSION_9_0,
+ GUCHARMAP_UNICODE_VERSION_10_0,
+ GUCHARMAP_UNICODE_VERSION_LATEST = GUCHARMAP_UNICODE_VERSION_10_0 /* private, will move forward with each revision */
} GucharmapUnicodeVersion;
/* return values are read-only */
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
EAPI=6
DESCRIPTION="GNOME Character Map, based on the Unicode Character Database"
HOMEPAGE="https://wiki.gnome.org/Apps/Gucharmap"
......@@ -10,17 +10,36 @@ SRC_URI="mirror://gnome/sources/gucharmap/${PV}/${P}.tar.bz2"
LICENSE="GPL-3 unicode"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc gconf"
IUSE="doc gconf nls +system-unicode"
DEPEND="
!gnome-extra/gucharmap:2.90
>=dev-libs/glib-2.16.3
>=x11-libs/gtk+-2.14.0:2
gconf? ( gnome-base/gconf:2 )"
gconf? ( gnome-base/gconf:2 )
system-unicode? ( <=app-i18n/unicode-data-10.0.0 )"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/unicode-10-defines.patch )
src_prepare() {
default
if use system-unicode; then
cd -- "${S}"/gucharmap
rm unicode-{blocks,names,nameslist,unihan,categories,scripts,versions}.h
# N.B. gen-guch-unicode-tables.pl is absent from the 3.0.1 tarball. The version used here is
# from gucharmap-10.0.0, with missing gtk2 header include lines restored, but otherwise
# verbatim.
perl "${FILESDIR}"/gen-guch-unicode-tables.pl \
"$(best_version app-i18n/unicode-data)" \
/usr/share/unicode-data
fi
}
src_configure() {
econf --with-gtk=2.0 \
--disable-scrollkeeper \
$(use_enable gconf)
--disable-scrollkeeper \
$(use_enable nls) \
$(use_enable gconf)
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>flussence@gmail.com</email>
<name>Anthony Parsons</name>
</maintainer>
<use>
<flag name="gconf">Use GConf to save gucharmap settings</flag>
<flag name="system-unicode">Regenerate unicode metadata using <pkg>app-i18n/unicode-data</pkg> instead of using old bundled copies</flag>
</use>
</pkgmetadata>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment