diff options
Diffstat (limited to 'app-i18n/kanjipad')
-rw-r--r-- | app-i18n/kanjipad/Manifest | 5 | ||||
-rw-r--r-- | app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch | 19 | ||||
-rw-r--r-- | app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch | 13 | ||||
-rw-r--r-- | app-i18n/kanjipad/kanjipad-2.0.0.ebuild | 44 | ||||
-rw-r--r-- | app-i18n/kanjipad/metadata.xml | 8 |
5 files changed, 89 insertions, 0 deletions
diff --git a/app-i18n/kanjipad/Manifest b/app-i18n/kanjipad/Manifest new file mode 100644 index 000000000000..e9463a954026 --- /dev/null +++ b/app-i18n/kanjipad/Manifest @@ -0,0 +1,5 @@ +AUX kanjipad-2.0.0-cflags.patch 613 BLAKE2B bae1e330b7256a81b0ed3bf79fd3a778e55ce8c21fe6a63bed07ed90d33383ff0c4b8edb5eb0f11e930d498ee302886fe8127162de5c4d9f4f9f7c1868c92aa0 SHA512 2164e5ff2202cd4314ee2d8dcc98f6d428748c3c62251c89daae83466a4a4b59bb08655d1bd98a5725569e680f1cfc25f3cd971919d3ffa20c78d38dd895b402 +AUX kanjipad-2.0.0-underlinking.patch 449 BLAKE2B 2ff743dc0bf407a499b181295e747c1327361dcf5f0ab63f91544ddce5aa73bbe16b1acfe85c1b4aa28ae88268f32d5b52e87947686bca10301c21b30413852e SHA512 78c510337dfe2ed1bff81bbdd6195b6e76e97aac4b1a634b8cf29590eac9d70ddf7b720ad9fe6cfcb9c01e3697d3c6def382d8693902369a2be9531440daf95c +DIST kanjipad-2.0.0.tar.gz 75930 BLAKE2B 032031a30ed294d2e1951e0cc123b599db2f34fe7ad7714200107644167e69b57e292ec1fd0af30bb354516a9eb27bbff5aeb4055319c98a690ed53ee002cc96 SHA512 66a38597358f97a9b43c3d1f4a9d6cf583b6158350131bae3b4d47edb167877def8eff4dde666c41549accb54c7256e08403985bb06d56758050a46d5b471ef6 +EBUILD kanjipad-2.0.0.ebuild 878 BLAKE2B cddc79498081d19e7b086ee4be2f6d3aafc41511d6395a4dd18f103bdd58f0b4dfc6bebe4a8fc5644e037d0fadef56dd6b2eb0aa33dae94c64ea6acc5e86691f SHA512 3a25a5ed9e2cfc17701fc58ae4ac9c8d51bf2804635c7bb045d585bd6d385c12d51ee34ad06bcb1a73b555c24d8b5eec60e133d18a23b7eebd4e312476c0a1c1 +MISC metadata.xml 230 BLAKE2B 42b2921aa8f0a7ac96ff31ef846311f023469d38da4186c49a365cb7c4a1c63769e54718fb9ab6e8cfd2b532f249b0214cc54929e93d1a9960a6b5be3238b55d SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 diff --git a/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch b/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch new file mode 100644 index 000000000000..b1a6786bf17a --- /dev/null +++ b/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch @@ -0,0 +1,19 @@ +diff --git a/Makefile b/Makefile +index 4869923..0f7509c 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-OPTIMIZE=-g -Wall ++OPTIMIZE=-Wall + #OPTIMIZE=-O2 + + GTKINC=$(shell pkg-config --cflags gtk+-2.0) -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED +@@ -26,7 +26,7 @@ PACKAGE = kanjipad + VERSION = 2.0.0 + + OBJS = kpengine.o scoring.o util.o +-CFLAGS = $(OPTIMIZE) $(GTKINC) -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"$(LIBDIR)\" -DBINDIR=\"$(BINDIR)\" ++CFLAGS += $(OPTIMIZE) $(GTKINC) -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"$(LIBDIR)\" -DBINDIR=\"$(BINDIR)\" + + all: kpengine kanjipad jdata.dat + diff --git a/app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch b/app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch new file mode 100644 index 000000000000..26fbcd765119 --- /dev/null +++ b/app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 7e67d30..5bf53ba 100644 +--- a/Makefile ++++ b/Makefile +@@ -40,7 +40,7 @@ kpengine: $(OBJS) + $(CC) -o kpengine $(OBJS) $(GLIBLIBS) $(LDFLAGS) + + kanjipad: kanjipad.o padarea.o +- $(CC) -o kanjipad kanjipad.o padarea.o $(GTKLIBS) $(LDFLAGS) ++ $(CC) -o kanjipad kanjipad.o padarea.o -lm $(GTKLIBS) $(LDFLAGS) + + jdata.dat: jstroke/strokedata.h conv_jdata.pl + perl conv_jdata.pl < jstroke/strokedata.h > jdata.dat diff --git a/app-i18n/kanjipad/kanjipad-2.0.0.ebuild b/app-i18n/kanjipad/kanjipad-2.0.0.ebuild new file mode 100644 index 000000000000..82d47a93e351 --- /dev/null +++ b/app-i18n/kanjipad/kanjipad-2.0.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Japanese handwriting recognition tool" +HOMEPAGE="https://fishsoup.net/software/kanjipad/" +SRC_URI="https://fishsoup.net/software/kanjipad/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc64 x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:2 + dev-libs/glib:2" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog README TODO jstroke/README-kanjipad ) + +PATCHES=( + "${FILESDIR}/${P}-cflags.patch" + "${FILESDIR}/${P}-underlinking.patch" +) + +src_prepare() { + default + perl -i -pe "s|PREFIX=/usr/local|PREFIX=/usr|; + s|-DG.*DISABLE_DEPRECATED||g" Makefile || die "Fixing Makefile failed" +} + +src_configure() { + tc-export CC +} + +src_install() { + dobin kanjipad kpengine + insinto /usr/share/kanjipad + doins jdata.dat + einstalldocs +} diff --git a/app-i18n/kanjipad/metadata.xml b/app-i18n/kanjipad/metadata.xml new file mode 100644 index 000000000000..c921b96adf6c --- /dev/null +++ b/app-i18n/kanjipad/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> +</maintainer> +</pkgmetadata> |