mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-i18n/scim-sunpinyin: new upstream release
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST scim-sunpinyin-2.0.3.tar.gz 33072 BLAKE2B 06d9bff2eb35b06a49f6be60c8cd5d257f6ca724f03acc01b29b01fd32c2d95bab87c4737448a448a42a58d070f6b254bcf52e6d0c8b98ff10718d2265e43509 SHA512 f983d40972c5792a4a27fdf699cffc7f6882c84060cfe3e260cdc3f587743b0f71339ccdb7067b393f88a69b74d999fba70c4d9bc8016b9b217b3c11667a2986
|
||||
DIST sunpinyin-3.0.0_rc1.tar.gz 547138 BLAKE2B 682e733241d690d1fef8ce452c497a894c5ab61bf5298c1f292ce3a25a681d594744db43ebd51b3e59274cce0e47a1bce15a793f2c20e2998915c3432f2a7c32 SHA512 c9d4936de5835a7f02e52c5b32bf1a42d76bf7588449aaa813f3df7ab2d72f3ca0f4e18f74a60be4860f0724b5e05cbe567c67e6f3150b0e71b23b3a9002fc5e
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
locales = []
|
||||
|
||||
-cflags = '-O2 -g -pipe'
|
||||
+cflags = '-O2 -g -pipe '
|
||||
version = '2.0.3'
|
||||
|
||||
AddOption('--prefix', dest='prefix', metavar='DIR',
|
||||
@@ -51,9 +51,6 @@
|
||||
|
||||
opts.Save('configure.conf', env)
|
||||
|
||||
-if GetOption('rpath') is not None:
|
||||
- env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
|
||||
-
|
||||
envvar = [('CC', 'CC'),
|
||||
('CXX', 'CXX'),
|
||||
('CFLAGS', 'CFLAGS'),
|
||||
@@ -75,6 +72,10 @@
|
||||
env.Append(CFLAGS=extra_cflags)
|
||||
env.Append(CXXFLAGS=extra_cflags)
|
||||
env.Replace(SHLIBPREFIX = '')
|
||||
+
|
||||
+if GetOption('rpath') is not None:
|
||||
+ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
|
||||
+
|
||||
#
|
||||
#==============================configure================================
|
||||
#
|
||||
@@ -5,6 +5,9 @@
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">sunpinyin/sunpinyin</remote-id>
|
||||
</upstream>
|
||||
|
||||
@@ -4,24 +4,24 @@
|
||||
EAPI="6"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-any-r1 scons-utils toolchain-funcs
|
||||
inherit python-any-r1 scons-utils toolchain-funcs vcs-snapshot
|
||||
|
||||
MY_P="${P#*-}"
|
||||
|
||||
DESCRIPTION="SunPinyin IMEngine for SCIM"
|
||||
HOMEPAGE="https://github.com/sunpinyin/sunpinyin"
|
||||
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN#*-}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/${PN#*-}/${PN#*-}/archive/v${PV/_rc/-rc}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1 CDDL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
IUSE="gtk3"
|
||||
|
||||
RDEPEND="app-i18n/scim
|
||||
~app-i18n/sunpinyin-${PV}:=
|
||||
x11-libs/gtk+:2"
|
||||
RDEPEND="app-i18n/scim[gtk3=]
|
||||
~app-i18n/sunpinyin-${PV}:="
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-force-switch.patch )
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
@@ -29,13 +29,13 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons \
|
||||
escons -C wrapper/scim \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--libexecdir="${EPREFIX}"/usr/libexec
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons --install-sandbox="${D}" install
|
||||
einstalldocs
|
||||
escons -C wrapper/scim --install-sandbox="${D}" install
|
||||
dodoc wrapper/scim/README
|
||||
}
|
||||
Reference in New Issue
Block a user