Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-i18n/im-canna/, app-i18n/im-canna/files/
Date: Sun, 26 Jun 2022 02:36:44
Message-Id: 1656210584.86e261f7c6cf145793de6643f190e7ffc49b0a0d.Alessandro-Barbieri@gentoo
1 commit: 86e261f7c6cf145793de6643f190e7ffc49b0a0d
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 21 23:56:03 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun Jun 26 02:29:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=86e261f7
7
8 app-i18n/im-canna: new package, add 0.3.2.2-r1
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 app-i18n/im-canna/Manifest | 1 +
13 app-i18n/im-canna/files/im-canna-gentoo.patch | 35 ++++++++++++++++++++
14 app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild | 46 +++++++++++++++++++++++++++
15 app-i18n/im-canna/metadata.xml | 9 ++++++
16 4 files changed, 91 insertions(+)
17
18 diff --git a/app-i18n/im-canna/Manifest b/app-i18n/im-canna/Manifest
19 new file mode 100644
20 index 000000000..224e02e83
21 --- /dev/null
22 +++ b/app-i18n/im-canna/Manifest
23 @@ -0,0 +1 @@
24 +DIST im-canna-0.3.2.2.tar.gz 314633 BLAKE2B 971ab1d00645a0bd977a156abd6a1d3ad767505b5bd45792332a399685388b53b08e3133bc435adb7a7e27125fb1ad2d538f78af2420679c6d6d17878251b2ac SHA512 6ec4253038ca97e3e6319c024e4d11ca5418bf478280c4b19b81a9c628310a06bcd4ec35334d3a2bbdff0245bdfa660c1cdfd949ddd6b768d3b73d78648edc81
25
26 diff --git a/app-i18n/im-canna/files/im-canna-gentoo.patch b/app-i18n/im-canna/files/im-canna-gentoo.patch
27 new file mode 100644
28 index 000000000..959e8697e
29 --- /dev/null
30 +++ b/app-i18n/im-canna/files/im-canna-gentoo.patch
31 @@ -0,0 +1,35 @@
32 +--- a/Makefile.am
33 ++++ b/Makefile.am
34 +@@ -1,4 +1,4 @@
35 +-moduledir = ${libdir}/gtk-2.0/2.4.0/immodules
36 ++moduledir = ${libdir}/gtk-2.0/${GTK_BINARY_VERSION}/immodules
37 + ## Makefile.am for gtk+/modules/input
38 + if PLATFORM_WIN32
39 + no_undefined = -no-undefined
40 +@@ -6,11 +6,11 @@
41 +
42 + SUBDIRS = po
43 +
44 +-INCLUDES = @GTK_DEP_CFLAGS@ -I/usr/include/canna -DIM_LOCALEDIR=\"${datadir}/locale\"
45 ++INCLUDES = @GTK_DEP_CFLAGS@ -DIM_LOCALEDIR=\"${datadir}/locale\"
46 +
47 + DEPS =
48 +
49 +-LDADDS = @GTK_DEP_LIBS@ -lcanna
50 ++LDADDS = @GTK_DEP_LIBS@
51 +
52 + EXTRA_DIST= \
53 + im-canna.spec \
54 +--- a/configure.in
55 ++++ b/configure.in
56 +@@ -21,8 +21,10 @@
57 +
58 + GTK_DEP_CFLAGS=`pkg-config gtk+-2.0 --cflags`
59 + GTK_DEP_LIBS=`pkg-config gtk+-2.0 --libs`
60 ++GTK_BINARY_VERSION=`pkg-config gtk+-2.0 --variable=gtk_binary_version`
61 + AC_SUBST(GTK_DEP_CFLAGS)
62 + AC_SUBST(GTK_DEP_LIBS)
63 ++AC_SUBST(GTK_BINARY_VERSION)
64 +
65 + LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
66 + LT_CURRENT=2
67
68 diff --git a/app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild b/app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild
69 new file mode 100644
70 index 000000000..2e14c27db
71 --- /dev/null
72 +++ b/app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild
73 @@ -0,0 +1,46 @@
74 +# Copyright 1999-2022 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=8
78 +
79 +inherit autotools gnome2-utils
80 +
81 +DESCRIPTION="Japanese Canna input method module for GTK+2"
82 +HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/immodule/"
83 +SRC_URI="http://bonobo.gnome.gr.jp/~nakai/immodule/${P}.tar.gz"
84 +
85 +LICENSE="GPL-2"
86 +SLOT="0"
87 +KEYWORDS="~amd64"
88 +
89 +RDEPEND="
90 + app-i18n/canna
91 + x11-libs/gtk+:2
92 +"
93 +DEPEND="
94 + ${RDEPEND}
95 + sys-devel/gettext
96 +"
97 +BDEPEND="virtual/pkgconfig"
98 +
99 +PATCHES=( "${FILESDIR}/${PN}-gentoo.patch" )
100 +
101 +src_prepare() {
102 + default
103 +
104 + mv configure.{in,ac} || die
105 + eautoreconf
106 +}
107 +
108 +src_install() {
109 + default
110 + find "${ED}" -name '*.la' -delete || die
111 +}
112 +
113 +pkg_postinst() {
114 + gnome2_query_immodules_gtk2
115 +}
116 +
117 +pkg_postrm() {
118 + gnome2_query_immodules_gtk2
119 +}
120
121 diff --git a/app-i18n/im-canna/metadata.xml b/app-i18n/im-canna/metadata.xml
122 new file mode 100644
123 index 000000000..37185a78f
124 --- /dev/null
125 +++ b/app-i18n/im-canna/metadata.xml
126 @@ -0,0 +1,9 @@
127 +<?xml version="1.0" encoding="UTF-8"?>
128 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
129 +<pkgmetadata>
130 + <maintainer type="person">
131 + <description>co-maintainers welcome</description>
132 + <name>Alessandro Barbieri</name>
133 + <email>lssndrbarbieri@×××××.com</email>
134 + </maintainer>
135 +</pkgmetadata>