parent
5b2e0b8191
commit
b4e636f5d8
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 29619 BLAKE2B 48ecd52237635d1f7ec5342e82417e595265ffa37380955a0341ac0f447240e51f0117bec3111cc65515e5389916fb1fd60070b0fea1df1ed57fe9b5de0e0a74 SHA512 2cceaca78ac23d1d1dd2b29656906c350ccdd7665fde258c9b9740e3a8bbfd924e2b157af347eb92c0e807b3c5718866e5beb0529c5002dc4e76a80b6874a29f
|
||||
TIMESTAMP 2022-03-12T07:09:07Z
|
||||
MANIFEST Manifest.files.gz 29610 BLAKE2B 83a2fcf0877498af9a3a0e9bf70f1d476105bdf37c788b98451400ca259429b6d961426b50353ca871f39859765ca2396f8342bbd5bb57b2c669599ff7f369bf SHA512 20ad822f9847da7132d7e092407b4e74fd3d853b28131d4ff54fc49f932525a9bfc95f974fed800fae2abc171085bcc814dca44f6557ca9b987356cb86d0756f
|
||||
TIMESTAMP 2022-03-13T15:09:11Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmIsRxNfFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmIuCRdfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klA/WhAAqugNWHN/t8IEzKs97L4YQMClrW3Y7FQzcHwuxaS5MeQjLP8C+r19nRfM
|
||||
v0nOOJ+AOc23vuBoG+qdmq6AKNRy8VbmN18YHwlWMWUte2GUJh6ELBFsmVJxXU1p
|
||||
vIaFgDvxsMt1N94hIkteQqncQXNbU6L4Cagt8ys6lstu7vbVQ6RsPnveTLq0sanS
|
||||
at9wb6otoAygskFDDL2YDZXLdskHaEGLu5ZgtFnhl+apcQxXX155VwOkGDpCmFgJ
|
||||
q3YPpRa7KqNwXtdhmAii0Es82eqQJLHrWIdECn9aeL+qantbXIrCoUW5aslyLfJX
|
||||
gKh199Rw41TBI9ges9kmeiHvskLsedsU4HTVPe+KiDxKu3FZk/9G/WV6hHfrZ8hf
|
||||
Sd3iJ/SM7hOLpickEkGzpR4GBc4p7ydYEHV1MZ05hkGHYPq+dyfJcFjf4SQQlFiP
|
||||
GVo795LNbJRqN7NX4Bl3Mfo/Xe38K+fnvk8lv8UirWemeD8KQG9gxkVWvtxFrTdr
|
||||
Z+bJIFGhGLNXQfptyOfvzrh1jKdBm7DBdZaqLT0TfKYvEILvlVhYIrx5rzpSziy6
|
||||
en6A3eYsZEDi1ZZCksHr7wRDPKcYns9F/KSjfMNnOtkWPN3vFBekDmN1VwbKeIoz
|
||||
7BYoBRaPgpu6LHjpuu8slj+0N6S4LoA6PVgWVpSMLxjARVSP2no=
|
||||
=2gZM
|
||||
klAvzQ/+LQBSFUWDkuAZ72LUn42/474RDdklmAANdhirzKgT3j4bezM5VTV9x3mO
|
||||
P5ndAbUeplJjSeEB0OehX0Stt2TZJiTaRV4F5SEqhbnSY4tnLwClUQ6yQVMvOfHP
|
||||
tbFv9KMe22FvVNOMWF1IScqBpqyxDiqk2r683XxLnZ6VVg7mrHUd5A9tHlf98ICu
|
||||
QXIhl6VsUZa7Bmb+YIpifRIpTHic4DZkCAMo8/pMHdd8IZX0kwuzQvi1JTQfKEYG
|
||||
DJDyUJTjbsCtxHN6cADXXnNezS9viOxBkMRqXKZIT+ELDBk5lTrrZpzMzKY+IXxh
|
||||
9FXegjlmDrRbdUiMtSY41yN1uaYyioA8QqmdD+hgPQ5tjz8I9kgXfZL6GQEEyPtV
|
||||
htSSTg0MuEfG+49mUauNe1NKDGeRd5JgJpa/sEWS3QI10MdMU5Fr9PLfG/dueJOT
|
||||
8UFOhfz5/8aAv14ilvPgQepe8TRuB/ZvrVW0sl38577tF1UMhaCwo5mHvKvAesmG
|
||||
gGfhtsjY+iZBilQ09lZ7Xnb++xwp9yy32jSo0r4iRqVIEClwG6ehHQiha6eaBek0
|
||||
ENTL+/HWzwqu9bbiDFJY9LvsDGbV/mLFDREfd4tkwkaTtqHDlVzGIDhTfxztESPO
|
||||
gCXcp1o33cB54JaaEvNeNhluZVpPiU95V9M7jpgw3Ukkc0vPknE=
|
||||
=nsNp
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
DIST codecrypt-1.7.2.tar.gz 446975 BLAKE2B 40b7f97dae84a0fd621ee19c6bfeba47b781a7f856ce9c077445d6387b75b97dce0fc02ee9481241b246b0eb7de6b44ac014a708a8ceba629828ca9d63b8e24c SHA512 4ad2ad9e665e486e353b48efff344436b276eac2dcbddcf4330796b8f1f06284eaeec9c4f4ef63f61e4477c3bce0973f60f76291dce11bee31a75658bee6a3a0
|
||||
DIST codecrypt-1.8.tar.gz 471273 BLAKE2B 30547c299689547b50e2742e12dbfd32f420217a81813446b36bf5ea52929ca1f3b1968d76937de17e0f003c82186abfa683a6e30dc1fa5dc2ffe89594827ae4 SHA512 0e452f4e93498faa671a5927a3dd93b6dc66cbda7eb71cb33a509f8608573eff5ac8fed0d5e09911e03c153b88c9cb1bb54f7b2aeeb7b6c31eec918ad9685102
|
||||
EBUILD codecrypt-1.7.2-r1.ebuild 672 BLAKE2B 8eff53eb6794460747a520d5a3846bc7c732f27105ecb472a1391a67ea8425f3a8c68797fb2fe1460073c586c757433bc98aa46bbc6a4c5fd1e09165f70c94f3 SHA512 a7678a94eb1240c5fe2deed6e1e5717dabd91f4a1fa6e1b279caed274e2cbb3ee61a8dd179590a3b5dd23c44366cff738fae3614feaea6d972aaedcaa6fed788
|
||||
EBUILD codecrypt-1.8-r2.ebuild 713 BLAKE2B 278aca073a6bf1d154ebf810b8c80bd49393f63354805d779bf16bf6b23be79661b1d029922217cc3d750a0709a53a05b0cde6dbc8e97279713cda9fabc4dcb4 SHA512 03d85d58d7c3bf3111853b6bd9b0c961ef9accf31fbac64ccf2051034c16e2ef634cc5481844ad6f1ae238537398b3de7d01fc70d50d24e95760d21b4a4d6511
|
||||
EBUILD codecrypt-1.8-r2.ebuild 712 BLAKE2B 679e061c9f26729dd5b9e977ebff4a19ba296d658f38da11f5179f94a27511d8be8fd4b9397c96c07809f46eab52b76de53ab32e6bae6e77e30d5baab43123ba SHA512 b66103a696892cc6fb988ef1dd6615561fa2cb06746f532ee78613d1df10517c4bc45ff7b79068929b13f18693b3ae2d0019fd8bacc9a011f0aea0b3a39b0a75
|
||||
MISC metadata.xml 787 BLAKE2B c0215be83f8e6e65106edf465677c0904b9bf5f6bf08628db18e2a5ce1f0410161b08fbca451d3e9799314333012dc5aca113691e0d40bc96fb4533b912d7140 SHA512 ee9dbbcbfd211ead99d814cbc738cf657568178358eba7132bd4d8150b4f5286848bf9fbb2d1251a3de9b2221719c590633efd713e7d6fd97a165246b3da0e53
|
||||
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Post-quantum cryptography tool"
|
||||
HOMEPAGE="http://e-x-a.org/codecrypt/"
|
||||
SRC_URI="http://e-x-a.org/codecrypt/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+cryptopp"
|
||||
|
||||
DEPEND="dev-libs/gmp:=
|
||||
cryptopp? ( dev-libs/crypto++:= )
|
||||
sci-libs/fftw:3.0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
# workaround -- gentoo is missing crypto++ pkg-config file
|
||||
sed -i -e 's/PKG_CHECK_MODULES(\[CRYPTOPP\],.*/LDFLAGS="$LDFLAGS -lcrypto++"/' configure.ac
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with cryptopp )
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST mkp224o-1.5.0-src.tar.gz 1378324 BLAKE2B 19d38fbf23328607fa428ec9329cdc909b210b4235d85e14ff372347c9b408ecf22d41dac7122bdae06725d7bca0c3d53c81cc27272c47517e714e9b8e0625dd SHA512 aa5adc91e695dbfd8ece5fdfe3ca370056d4390a5186326b35ee37402040fa24675ede5389c48b79a1e57b624b86024ff72957741fef175602f7721f20c5cc14
|
||||
EBUILD mkp224o-1.5.0.ebuild 767 BLAKE2B 09f1c9f76f14291ac4147cf8bbce8de608bf2af4ca161a3858a6eade5cadffa348beee987b5ba0c0ddc54ae4df427e3feb1c304771cf9e385f6c4f6e2c4d6551 SHA512 29818b78f6ffe92aa532981493889444a35ee4b07e6ce5a79a1caa023236ec0351e948801ba8d3ed2595ef7d7b9380feb9ed30c02f51bd728e36a702ad3e627b
|
||||
EBUILD mkp224o-1.5.0.ebuild 766 BLAKE2B 8138ab3b1467e1f2164b5ffac561a7d62bdebb99c53624e5a9c9b936fb839f18615ab7165f35a0bc38c6986af1cfbc8b01dc635426db2a5d05db077f752ef232 SHA512 b678d1d3167979e9f7507b6a4359356cf859160026892fc7e3489355b9201557139223e912ccf6f09aa3e770a2577c24ad071b82bbab476e72540ff0217ddacd
|
||||
MISC metadata.xml 440 BLAKE2B ce6c1788d5bcc126762432a2bca2db89f89e675700e9443b512295843ab58b714a222804c9a6776986dc56fa11aa25950d23e2d4b61b98ae55cb1650716edc56 SHA512 d6d0de280eea8ee5b68cbd8145ec089011949a88ed73efbc5f4b2b54ac6e288e8a4cdac3bbba9a633e7437326b089bd20438acc003bea33576463c7e8fd6857d
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,9 +1,7 @@
|
||||
DIST ruby.eselect-20170723.xz 1972 BLAKE2B 338f9fbb81ebe3c0fdcab77ab12cabd6aa334ac3bf64352cd801c8088d7c3ac4c452e647addc98497d104df24f7934d8cdd8b0008e4f52fb27306a80411f793b SHA512 9c0614bc7e2ce9811466f257035d74622a96db8d44aa0908414fbac7d4142c34350257b08ace7371901e46cc0c9a38c3f2acae3caea4fb354ccc37b8c919b48f
|
||||
DIST ruby.eselect-20190121.xz 2000 BLAKE2B d04f9230e428526fb7ac7f6c274d7ac1b47af9f9bbb33cbfcec72cccdbe553db73a320e8a86190b88b4f9ee9c27fe0e5dabce1e1c5edfd4373d9a4bfcb457957 SHA512 aca2c46e39d3e0806a0ab942e8afe755992e5df98c50f4f2e012c93b8d6339e2a8400376e73187744a3d42a77725e03eed48b300f7d4d2da546a434184988f52
|
||||
DIST ruby.eselect-20191222.xz 2000 BLAKE2B ec89dca67730ff3c6acba8906f9436866b45c3b7fc4c29be6614eddf7e5fbc1f9f9ff0bfe3ddfdc7309d242a5da6f8913cae738895fd6abcc39dc336f609d066 SHA512 72c3e3fe8c82474de25dbde9f1f63739e57be3e4e61a1f86e57c9dcaf92d72fd8d17263f8a326af771f64395febc82f5eb29e86b4b2a44af029b6c1fc41e43d2
|
||||
DIST ruby.eselect-20201225.xz 2008 BLAKE2B 1471c174dddda5078f54b39b46d78dd0a5a2e23b19185d3c833f870b94809c4e7a642bb987d2213e9f99799c7669f0cbeca77dcefe381804f9aa91e197ed499c SHA512 e5b6ff18a7e1a7e3d902b59d27a558499fb87008abe51c3901430ebeaaacd1c1ebc6b782d6eb083d0d2abb5f0fd7cf712b42b451342cbeccceabb8d17859668c
|
||||
EBUILD eselect-ruby-20170723.ebuild 660 BLAKE2B f99f0a670cf3b8072f559d32f55c4e4084cda34be9792ad32897e80906a1e003399960a23e2e5f2bb6d44b6d730ff41e9e5a57176e26e3d9e22586311702f358 SHA512 b80d231e5251aaa9d8d1c43be530318f00b66a7a2b233067bfe13e51134a7767831499c68d797eb0086941812d2933c54645d62b5ed09e0d2902e0d1ec17b0ed
|
||||
EBUILD eselect-ruby-20190121.ebuild 659 BLAKE2B 44da41f3cb85c9055523e37d013055156fef7f0d77e12d95dec973f361b02e34599cfdff89bce040f5033c6105b32f306f1f171fa1a182a2a7ad6feb45d642b8 SHA512 6a4919551a48048f4123ea846983a14187fa599ea5e632cdf69fc54c80603d567fac710ab0d25b8211d043d2fd57db63d5c472b86a6615dcacb114adc40d58db
|
||||
DIST ruby.eselect-20220313.xz 2008 BLAKE2B aeeb70228ccaf163359cff4ba09e9417df7896f63748821b447b08f6fc57cfc760963ee231c82a03b33f24e01492d9305a68f29d00cd45d29d37e8ee4fb92afe SHA512 542ddb796b93e4b954f5fcfbc49e06b41218e1def73078b14c4d6505227bf08dc7fec20b11042058149af4939fd341c20bfc0c9dd13900a33d12f02ff761412f
|
||||
EBUILD eselect-ruby-20191222.ebuild 652 BLAKE2B c345686e0a6d1729d9aeab00605bfb623fe4c92241afd43718770718ae143331ab72dff9d998247e6aa2342dcc6920e8e7245d03333e34358d921da83a9386b5 SHA512 db2cc61673e943fa4cffba75cbdda00e67113368ffd5193cba148e2ae73d306b7ee2cbcda7bc668c5d15b858eda3cc48ac44e1aac0f6fa5c6b8b8e88a53d112a
|
||||
EBUILD eselect-ruby-20201225.ebuild 667 BLAKE2B 8099fd217a6e8823e535c8dce429b7179038912d7a2c36fc75f3386897db3868cc94b11d587dbc345144c0a9b7d7765970a1784bfdbf4b69dc5f419e06d6ef00 SHA512 291d22cbd51e986ffda457ad670ddfea3374694b369b5889b1f154f58fb29ecc3505cb6e02addb942d00bfbabfc384e6f8ee0ed3f4df3063a8a3621dd5634b05
|
||||
EBUILD eselect-ruby-20220313.ebuild 667 BLAKE2B 867e1a3c3243c9aeeb4612e55bfd9fe08476701c30464b7ee06f39a5c6d8be320e105583985df191caf2957fa18e534c964c7951f9dd19731a3047bc249a7be7 SHA512 f6df5f3eb9346ecda84821157b982a23c27bac7c40ea1aa7038d1f076781149875a4495c0d71f5907901787eab9904dd36e652c7ec0fe586166f306708a22a76
|
||||
MISC metadata.xml 271 BLAKE2B ba1244de4ef19fe62ff4c24356d879f136972737333f8cb217b4b7ec8377c9eab52c0775ceb464b203167dd2a02245e5c5f4235b1eca422eb8e9432939e26d94 SHA512 71c167a5edafa5ca0d3fe6c97dd82c6e0fbbfdb4f7d4a85b19d2f96583d5a02e14f153c331345459bc448ccd8a387dd37034a56d2153a67b71056c7ca142c0cf
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Manages multiple Ruby versions"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
SRC_URI="https://dev.gentoo.org/~graaff/ruby-team/ruby.eselect-${PVR}.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-admin/eselect-1.0.2"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/eselect/modules
|
||||
newins "${WORKDIR}/ruby.eselect-${PVR}" ruby.eselect
|
||||
}
|
@ -1,15 +1,15 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Manages multiple Ruby versions"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Ruby"
|
||||
SRC_URI="https://dev.gentoo.org/~graaff/ruby-team/ruby.eselect-${PVR}.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-admin/eselect-1.0.2"
|
Binary file not shown.
Binary file not shown.
@ -1,27 +0,0 @@
|
||||
--- /src/net/json_util_test.cc
|
||||
+++ /src/net/json_util_test.cc
|
||||
@@ -784,13 +784,13 @@
|
||||
for (size_t i = 0; i < arraysize(kNumS32ValueKeys); ++i) {
|
||||
{
|
||||
Json::Value json_value;
|
||||
- json_value[kNumS32ValueKeys[i]] = -2147483649ll;
|
||||
+ json_value[kNumS32ValueKeys[i]] = static_cast<Json::Value::Int64>(-2147483649ll);
|
||||
TestMsg msg;
|
||||
EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
|
||||
}
|
||||
{
|
||||
Json::Value json_value;
|
||||
- json_value[kNumS32ValueKeys[i]] = 2147483648ull;
|
||||
+ json_value[kNumS32ValueKeys[i]] = static_cast<Json::Value::UInt64>(2147483648ull);
|
||||
TestMsg msg;
|
||||
EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
|
||||
}
|
||||
@@ -805,7 +805,7 @@
|
||||
}
|
||||
{
|
||||
Json::Value json_value;
|
||||
- json_value[kNumU32ValueKeys[i]] = 4294967296ull;
|
||||
+ json_value[kNumU32ValueKeys[i]] = static_cast<Json::Value::UInt64>(4294967296ull);
|
||||
TestMsg msg;
|
||||
EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
Disable test leaving mozc_server orphan process.
|
||||
|
||||
--- /src/unix/ibus/mozc_engine_test.cc
|
||||
+++ /src/unix/ibus/mozc_engine_test.cc
|
||||
@@ -41,65 +41,5 @@
|
||||
namespace mozc {
|
||||
namespace ibus {
|
||||
|
||||
-class LaunchToolTest : public testing::Test {
|
||||
- public:
|
||||
- LaunchToolTest() {
|
||||
- g_type_init();
|
||||
- }
|
||||
-
|
||||
- protected:
|
||||
- virtual void SetUp() {
|
||||
- mozc_engine_.reset(new MozcEngine());
|
||||
-
|
||||
- mock_ = new client::ClientMock();
|
||||
- mock_->ClearFunctionCounter();
|
||||
- mozc_engine_->client_.reset(mock_);
|
||||
- }
|
||||
-
|
||||
- virtual void TearDown() {
|
||||
- mozc_engine_.reset();
|
||||
- }
|
||||
-
|
||||
- client::ClientMock* mock_;
|
||||
- unique_ptr<MozcEngine> mozc_engine_;
|
||||
-
|
||||
- private:
|
||||
- DISALLOW_COPY_AND_ASSIGN(LaunchToolTest);
|
||||
-};
|
||||
-
|
||||
-TEST_F(LaunchToolTest, LaunchToolTest) {
|
||||
- commands::Output output;
|
||||
-
|
||||
- // Launch config dialog
|
||||
- mock_->ClearFunctionCounter();
|
||||
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
|
||||
- output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
|
||||
- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
|
||||
-
|
||||
- // Launch dictionary tool
|
||||
- mock_->ClearFunctionCounter();
|
||||
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
|
||||
- output.set_launch_tool_mode(commands::Output::DICTIONARY_TOOL);
|
||||
- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
|
||||
-
|
||||
- // Launch word register dialog
|
||||
- mock_->ClearFunctionCounter();
|
||||
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
|
||||
- output.set_launch_tool_mode(commands::Output::WORD_REGISTER_DIALOG);
|
||||
- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
|
||||
-
|
||||
- // Launch no tool(means do nothing)
|
||||
- mock_->ClearFunctionCounter();
|
||||
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
|
||||
- output.set_launch_tool_mode(commands::Output::NO_TOOL);
|
||||
- EXPECT_FALSE(mozc_engine_->LaunchTool(output));
|
||||
-
|
||||
- // Something occurring in client::Client::LaunchTool
|
||||
- mock_->ClearFunctionCounter();
|
||||
- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
|
||||
- output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
|
||||
- EXPECT_FALSE(mozc_engine_->LaunchTool(output));
|
||||
-}
|
||||
-
|
||||
} // namespace ibus
|
||||
} // namespace mozc
|
@ -1,132 +0,0 @@
|
||||
https://github.com/google/mozc/issues/470
|
||||
|
||||
--- /src/base/system_util.cc
|
||||
+++ /src/base/system_util.cc
|
||||
@@ -208,28 +208,39 @@
|
||||
dir_ = "/";
|
||||
return;
|
||||
#else // MOZC_USE_PEPPER_FILE_IO
|
||||
+ const char *configuration_directory_env;
|
||||
string dir;
|
||||
|
||||
#ifdef OS_WIN
|
||||
- DCHECK(SUCCEEDED(Singleton<LocalAppDataDirectoryCache>::get()->result()));
|
||||
- dir = Singleton<LocalAppDataDirectoryCache>::get()->path();
|
||||
+ configuration_directory_env = ::getenv("MOZC_CONFIGURATION_DIRECTORY");
|
||||
+ if (configuration_directory_env) {
|
||||
+ dir = configuration_directory_env;
|
||||
+ } else {
|
||||
+ DCHECK(SUCCEEDED(Singleton<LocalAppDataDirectoryCache>::get()->result()));
|
||||
+ dir = Singleton<LocalAppDataDirectoryCache>::get()->path();
|
||||
#ifdef GOOGLE_JAPANESE_INPUT_BUILD
|
||||
- dir = FileUtil::JoinPath(dir, kCompanyNameInEnglish);
|
||||
- FileUtil::CreateDirectory(dir);
|
||||
+ dir = FileUtil::JoinPath(dir, kCompanyNameInEnglish);
|
||||
+ FileUtil::CreateDirectory(dir);
|
||||
#endif // GOOGLE_JAPANESE_INPUT_BUILD
|
||||
- dir = FileUtil::JoinPath(dir, kProductNameInEnglish);
|
||||
+ dir = FileUtil::JoinPath(dir, kProductNameInEnglish);
|
||||
+ }
|
||||
|
||||
#elif defined(OS_MACOSX)
|
||||
- dir = MacUtil::GetApplicationSupportDirectory();
|
||||
+ configuration_directory_env = ::getenv("MOZC_CONFIGURATION_DIRECTORY");
|
||||
+ if (configuration_directory_env) {
|
||||
+ dir = configuration_directory_env;
|
||||
+ } else {
|
||||
+ dir = MacUtil::GetApplicationSupportDirectory();
|
||||
#ifdef GOOGLE_JAPANESE_INPUT_BUILD
|
||||
- dir = FileUtil::JoinPath(dir, "Google");
|
||||
- // The permission of ~/Library/Application Support/Google seems to be 0755.
|
||||
- // TODO(komatsu): nice to make a wrapper function.
|
||||
- ::mkdir(dir.c_str(), 0755);
|
||||
- dir = FileUtil::JoinPath(dir, "JapaneseInput");
|
||||
+ dir = FileUtil::JoinPath(dir, "Google");
|
||||
+ // The permission of ~/Library/Application Support/Google seems to be 0755.
|
||||
+ // TODO(komatsu): nice to make a wrapper function.
|
||||
+ ::mkdir(dir.c_str(), 0755);
|
||||
+ dir = FileUtil::JoinPath(dir, "JapaneseInput");
|
||||
#else // GOOGLE_JAPANESE_INPUT_BUILD
|
||||
- dir = FileUtil::JoinPath(dir, "Mozc");
|
||||
+ dir = FileUtil::JoinPath(dir, "Mozc");
|
||||
#endif // GOOGLE_JAPANESE_INPUT_BUILD
|
||||
+ }
|
||||
|
||||
#elif defined(OS_ANDROID)
|
||||
// For android, we do nothing here because user profile directory,
|
||||
@@ -237,14 +248,24 @@
|
||||
// is injected from Java layer.
|
||||
|
||||
#else // !OS_WIN && !OS_MACOSX && !OS_ANDROID
|
||||
- char buf[1024];
|
||||
- struct passwd pw, *ppw;
|
||||
- const uid_t uid = geteuid();
|
||||
- CHECK_EQ(0, getpwuid_r(uid, &pw, buf, sizeof(buf), &ppw))
|
||||
- << "Can't get passwd entry for uid " << uid << ".";
|
||||
- CHECK_LT(0, strlen(pw.pw_dir))
|
||||
- << "Home directory for uid " << uid << " is not set.";
|
||||
- dir = FileUtil::JoinPath(pw.pw_dir, ".mozc");
|
||||
+ configuration_directory_env = ::getenv("MOZC_CONFIGURATION_DIRECTORY");
|
||||
+ if (configuration_directory_env) {
|
||||
+ dir = configuration_directory_env;
|
||||
+ } else {
|
||||
+ const char *home_env = ::getenv("HOME");
|
||||
+ if (home_env) {
|
||||
+ dir = FileUtil::JoinPath(home_env, ".mozc");
|
||||
+ } else {
|
||||
+ char buf[1024];
|
||||
+ struct passwd pw, *ppw;
|
||||
+ const uid_t uid = geteuid();
|
||||
+ CHECK_EQ(0, getpwuid_r(uid, &pw, buf, sizeof(buf), &ppw))
|
||||
+ << "Can't get passwd entry for uid " << uid << ".";
|
||||
+ CHECK_LT(0, strlen(pw.pw_dir))
|
||||
+ << "Home directory for uid " << uid << " is not set.";
|
||||
+ dir = FileUtil::JoinPath(pw.pw_dir, ".mozc");
|
||||
+ }
|
||||
+ }
|
||||
#endif // !OS_WIN && !OS_MACOSX && !OS_ANDROID
|
||||
|
||||
FileUtil::CreateDirectory(dir);
|
||||
@@ -356,6 +377,10 @@
|
||||
#endif // OS_WIN
|
||||
|
||||
string SystemUtil::GetServerDirectory() {
|
||||
+ const char *server_directory_env = ::getenv("MOZC_SERVER_DIRECTORY");
|
||||
+ if (server_directory_env) {
|
||||
+ return server_directory_env;
|
||||
+ }
|
||||
#ifdef OS_WIN
|
||||
DCHECK(SUCCEEDED(Singleton<ProgramFilesX86Cache>::get()->result()));
|
||||
#if defined(GOOGLE_JAPANESE_INPUT_BUILD)
|
||||
@@ -409,6 +434,10 @@
|
||||
}
|
||||
|
||||
string SystemUtil::GetDocumentDirectory() {
|
||||
+ const char *documents_directory_env = ::getenv("MOZC_DOCUMENTS_DIRECTORY");
|
||||
+ if (documents_directory_env) {
|
||||
+ return documents_directory_env;
|
||||
+ }
|
||||
#if defined(OS_MACOSX)
|
||||
return GetServerDirectory();
|
||||
#elif defined(MOZC_DOCUMENT_DIRECTORY)
|
||||
--- /src/handwriting/zinnia_handwriting.cc
|
||||
+++ /src/handwriting/zinnia_handwriting.cc
|
||||
@@ -31,6 +31,7 @@
|
||||
|
||||
#include "handwriting/zinnia_handwriting.h"
|
||||
|
||||
+#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
@@ -48,6 +49,10 @@
|
||||
|
||||
// static
|
||||
string ZinniaHandwriting::GetModelFileName() {
|
||||
+ const char *zinnia_model_file_env = ::getenv("MOZC_ZINNIA_MODEL_FILE");
|
||||
+ if (zinnia_model_file_env) {
|
||||
+ return zinnia_model_file_env;
|
||||
+ }
|
||||
#if defined(MOZC_BUILD)
|
||||
return MOZC_ZINNIA_MODEL_FILE;
|
||||
#else
|
@ -1,22 +0,0 @@
|
||||
https://github.com/google/mozc/issues/441
|
||||
|
||||
--- /src/prediction/zero_query_dict.h
|
||||
+++ /src/prediction/zero_query_dict.h
|
||||
@@ -147,6 +147,17 @@
|
||||
return iter;
|
||||
}
|
||||
|
||||
+ iterator &operator--() {
|
||||
+ ptr_ -= kTokenByteSize;
|
||||
+ return *this;
|
||||
+ }
|
||||
+
|
||||
+ iterator operator--(int) {
|
||||
+ const iterator tmp(ptr_, string_array_);
|
||||
+ ptr_ -= kTokenByteSize;
|
||||
+ return tmp;
|
||||
+ }
|
||||
+
|
||||
iterator &operator-=(ptrdiff_t n) {
|
||||
ptr_ -= n * kTokenByteSize;
|
||||
return *this;
|
@ -1,13 +0,0 @@
|
||||
Fix building with Protocol Buffers >=3.18.
|
||||
|
||||
--- /src/dictionary/user_dictionary_storage.cc
|
||||
+++ /src/dictionary/user_dictionary_storage.cc
|
||||
@@ -108,7 +108,7 @@
|
||||
// wants to use more than 512MB.
|
||||
mozc::protobuf::io::IstreamInputStream zero_copy_input(&ifs);
|
||||
mozc::protobuf::io::CodedInputStream decoder(&zero_copy_input);
|
||||
- decoder.SetTotalBytesLimit(kDefaultTotalBytesLimit, -1);
|
||||
+ decoder.SetTotalBytesLimit(kDefaultTotalBytesLimit);
|
||||
if (!user_dictionary_storage_base.ParseFromCodedStream(&decoder)) {
|
||||
LOG(ERROR) << "Failed to parse";
|
||||
if (!decoder.ConsumedEntireMessage() || !ifs.eof()) {
|
@ -1,621 +0,0 @@
|
||||
https://github.com/google/mozc/issues/462
|
||||
|
||||
--- /src/base/gen_character_set.py
|
||||
+++ /src/base/gen_character_set.py
|
||||
@@ -33,7 +33,6 @@
|
||||
import itertools
|
||||
import optparse
|
||||
import re
|
||||
-import string
|
||||
import sys
|
||||
|
||||
|
||||
@@ -89,7 +88,8 @@
|
||||
@staticmethod
|
||||
def _LoadTable(filename, column_index, pattern, validater):
|
||||
result = set()
|
||||
- for line in open(filename):
|
||||
+ fh = open(filename)
|
||||
+ for line in fh:
|
||||
if line.startswith('#'):
|
||||
# Skip a comment line.
|
||||
continue
|
||||
@@ -100,6 +100,7 @@
|
||||
ucs = int(match.group(1), 16)
|
||||
if validater(ucs):
|
||||
result.add(ucs)
|
||||
+ fh.close()
|
||||
|
||||
return result
|
||||
|
||||
@@ -250,7 +251,7 @@
|
||||
# (at most) four code points.
|
||||
bit_list = []
|
||||
for _, group in itertools.groupby(enumerate(category_list),
|
||||
- lambda (codepoint, _): codepoint / 4):
|
||||
+ lambda x: x[0] // 4):
|
||||
# Fill bits from LSB to MSB for each group.
|
||||
bits = 0
|
||||
for index, (_, category) in enumerate(group):
|
||||
@@ -263,7 +264,7 @@
|
||||
|
||||
# Output the content. Each line would have (at most) 16 bytes.
|
||||
for _, group in itertools.groupby(enumerate(bit_list),
|
||||
- lambda (index, _): index / 16):
|
||||
+ lambda x: x[0] // 16):
|
||||
line = [' \"']
|
||||
for _, bits in group:
|
||||
line.append('\\x%02X' % bits)
|
||||
@@ -386,7 +387,7 @@
|
||||
# Bitmap lookup.
|
||||
# TODO(hidehiko): the bitmap has two huge 0-bits ranges. Reduce them.
|
||||
category_map = [
|
||||
- (bits, category) for category, bits in CATEGORY_BITMAP.iteritems()]
|
||||
+ (bits, category) for category, bits in CATEGORY_BITMAP.items()]
|
||||
category_map.sort()
|
||||
|
||||
lines.extend([
|
||||
@@ -451,7 +452,7 @@
|
||||
options.jisx0213file)
|
||||
category_list = [
|
||||
categorizer.GetCategory(codepoint)
|
||||
- for codepoint in xrange(categorizer.MaxCodePoint() + 1)]
|
||||
+ for codepoint in range(categorizer.MaxCodePoint() + 1)]
|
||||
generated_character_set_header = GenerateCharacterSetHeader(category_list)
|
||||
|
||||
# Write the result.
|
||||
--- /src/base/gen_config_file_stream_data.py
|
||||
+++ /src/base/gen_config_file_stream_data.py
|
||||
@@ -58,7 +58,7 @@
|
||||
result = []
|
||||
result.append(' { "%s", "' % os.path.basename(path))
|
||||
with open(path, 'rb') as stream:
|
||||
- result.extend(r'\x%02X' % ord(byte) for byte in stream.read())
|
||||
+ result.extend(r'\x%02X' % byte for byte in stream.read())
|
||||
result.append('", %d }' % os.path.getsize(path))
|
||||
|
||||
return ''.join(result)
|
||||
@@ -93,8 +93,8 @@
|
||||
def main():
|
||||
(options, args) = ParseOptions()
|
||||
if not options.output:
|
||||
- print >>sys.stderr, (
|
||||
- 'usage: gen_config_file_stream_data.py --output=filepath input ...')
|
||||
+ print('usage: gen_config_file_stream_data.py --output=filepath input ...',
|
||||
+ file=sys.stderr)
|
||||
sys.exit(2)
|
||||
|
||||
with open(options.output, 'w') as output:
|
||||
--- /src/build_mozc.py
|
||||
+++ /src/build_mozc.py
|
||||
@@ -943,7 +943,7 @@
|
||||
logging.info('running %s...', binary)
|
||||
try:
|
||||
test_function(binary, gtest_report_dir, options)
|
||||
- except RunOrDieError, e:
|
||||
+ except RunOrDieError as e:
|
||||
logging.error(e)
|
||||
failed_tests.append(binary)
|
||||
else:
|
||||
@@ -1082,7 +1082,7 @@
|
||||
# and '-c' and 'Release' are build options.
|
||||
targets = []
|
||||
build_options = []
|
||||
- for i in xrange(len(args)):
|
||||
+ for i in range(len(args)):
|
||||
if args[i].startswith('-'):
|
||||
# starting with build options
|
||||
build_options = args[i:]
|
||||
@@ -1190,14 +1190,14 @@
|
||||
|
||||
def ShowHelpAndExit():
|
||||
"""Shows the help message."""
|
||||
- print 'Usage: build_mozc.py COMMAND [ARGS]'
|
||||
- print 'Commands: '
|
||||
- print ' gyp Generate project files.'
|
||||
- print ' build Build the specified target.'
|
||||
- print ' runtests Build all tests and run them.'
|
||||
- print ' clean Clean all the build files and directories.'
|
||||
- print ''
|
||||
- print 'See also the comment in the script for typical usage.'
|
||||
+ print('Usage: build_mozc.py COMMAND [ARGS]')
|
||||
+ print('Commands: ')
|
||||
+ print(' gyp Generate project files.')
|
||||
+ print(' build Build the specified target.')
|
||||
+ print(' runtests Build all tests and run them.')
|
||||
+ print(' clean Clean all the build files and directories.')
|
||||
+ print('')
|
||||
+ print('See also the comment in the script for typical usage.')
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
--- /src/build_tools/android_util.py
|
||||
+++ /src/build_tools/android_util.py
|
||||
@@ -548,7 +548,7 @@
|
||||
(devices_result, _) = process.communicate()
|
||||
used_ports = set(int(port) for port
|
||||
in re.findall(r'emulator-(\d+)', devices_result))
|
||||
- return [port for port in xrange(5554, 5586, 2) if port not in used_ports]
|
||||
+ return [port for port in range(5554, 5586, 2) if port not in used_ports]
|
||||
|
||||
|
||||
def SetUpTestingSdkHomeDirectory(dest_android_sdk_home,
|
||||
@@ -575,7 +575,7 @@
|
||||
'create', 'avd',
|
||||
'--force',
|
||||
'--sdcard', '512M',]
|
||||
- for key, value in options.iteritems():
|
||||
+ for key, value in options.items():
|
||||
args.extend([key, value])
|
||||
env = {'ANDROID_SDK_HOME': os.path.abspath(dest_android_sdk_home)}
|
||||
logging.info('Creating AVD: %s', args)
|
||||
@@ -615,7 +615,7 @@
|
||||
def main():
|
||||
for arg in sys.argv[1:]:
|
||||
for item in sorted(GetApkProperties(arg).items()):
|
||||
- print '%s: %s' % item
|
||||
+ print('%s: %s' % item)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
--- /src/build_tools/binary_size_checker.py
|
||||
+++ /src/build_tools/binary_size_checker.py
|
||||
@@ -70,12 +70,12 @@
|
||||
actual_size = os.stat(filename).st_size
|
||||
expected_size = EXPECTED_MAXIMUM_SIZES[basename]
|
||||
if actual_size < expected_size * 1024 * 1024:
|
||||
- print 'Pass: %s (size: %d) is smaller than expected (%d MB)' % (
|
||||
- filename, actual_size, expected_size)
|
||||
+ print('Pass: %s (size: %d) is smaller than expected (%d MB)' % (
|
||||
+ filename, actual_size, expected_size))
|
||||
return True
|
||||
else:
|
||||
- print 'WARNING: %s (size: %d) is larger than expected (%d MB)' % (
|
||||
- filename, actual_size, expected_size)
|
||||
+ print('WARNING: %s (size: %d) is larger than expected (%d MB)' % (
|
||||
+ filename, actual_size, expected_size))
|
||||
return False
|
||||
|
||||
|
||||
--- /src/build_tools/build_and_sign_pkg_mac.py
|
||||
+++ /src/build_tools/build_and_sign_pkg_mac.py
|
||||
@@ -44,8 +44,8 @@
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
-from util import PrintErrorAndExit
|
||||
-from util import RunOrDie
|
||||
+from .util import PrintErrorAndExit
|
||||
+from .util import RunOrDie
|
||||
|
||||
|
||||
def ParseOption():
|
||||
--- /src/build_tools/build_breakpad.py
|
||||
+++ /src/build_tools/build_breakpad.py
|
||||
@@ -54,9 +54,9 @@
|
||||
try:
|
||||
subprocess.check_output(command)
|
||||
except subprocess.CalledProcessError as e:
|
||||
- print e.output
|
||||
+ print(e.output)
|
||||
sys.exit(e.returncode)
|
||||
- print 'Done: %s' % ' '.join(command)
|
||||
+ print('Done: %s' % ' '.join(command))
|
||||
|
||||
|
||||
def Xcodebuild(projdir, target, arch, sdk, outdir):
|
||||
--- /src/build_tools/build_diskimage_mac.py
|
||||
+++ /src/build_tools/build_diskimage_mac.py
|
||||
@@ -90,7 +90,7 @@
|
||||
# setup volume directory
|
||||
temp_dir = tempfile.mkdtemp()
|
||||
CopyFile(path.join(build_dir, ".keystone_install"), temp_dir)
|
||||
- os.chmod(path.join(temp_dir, ".keystone_install"), 0755) # rwxr-xr-x
|
||||
+ os.chmod(path.join(temp_dir, ".keystone_install"), 0o755) # rwxr-xr-x
|
||||
for a in args:
|
||||
CopyFile(path.join(build_dir, a), temp_dir)
|
||||
|
||||
--- /src/build_tools/change_reference_mac.py
|
||||
+++ /src/build_tools/change_reference_mac.py
|
||||
@@ -41,8 +41,8 @@
|
||||
import optparse
|
||||
import os
|
||||
|
||||
-from util import PrintErrorAndExit
|
||||
-from util import RunOrDie
|
||||
+from .util import PrintErrorAndExit
|
||||
+from .util import RunOrDie
|
||||
|
||||
|
||||
def ParseOption():
|
||||
--- /src/build_tools/code_generator_util.py
|
||||
+++ /src/build_tools/code_generator_util.py
|
||||
@@ -33,27 +33,26 @@
|
||||
__author__ = "hidehiko"
|
||||
|
||||
import struct
|
||||
-import types
|
||||
|
||||
|
||||
def ToCppStringLiteral(s):
|
||||
"""Returns C-style string literal, or NULL if given s is None."""
|
||||
if s is None:
|
||||
- return 'NULL'
|
||||
+ return b'NULL'
|
||||
|
||||
- if all(0x20 <= ord(c) <= 0x7E for c in s):
|
||||
+ if all(0x20 <= c <= 0x7E for c in s):
|
||||
# All characters are in ascii code.
|
||||
- return '"%s"' % s.replace('\\', r'\\').replace('"', r'\"')
|
||||
+ return b'"%b"' % s.replace(b'\\', br'\\').replace(b'"', br'\"')
|
||||
else:
|
||||
# One or more characters are non-ascii.
|
||||
- return '"%s"' % ''.join(r'\x%02X' % ord(c) for c in s)
|
||||
+ return b'"%b"' % b''.join(br'\x%02X' % c for c in s)
|
||||
|
||||
|
||||
def FormatWithCppEscape(format_text, *args):
|
||||
"""Returns a string filling format with args."""
|
||||
literal_list = []
|
||||
for arg in args:
|
||||
- if isinstance(arg, (types.StringType, types.NoneType)):
|
||||
+ if isinstance(arg, (bytes, type(None))):
|
||||
arg = ToCppStringLiteral(arg)
|
||||
literal_list.append(arg)
|
||||
|
||||
@@ -95,7 +94,7 @@
|
||||
if target_compiler and target_compiler.startswith('msvs'):
|
||||
stream.write('const uint64 k%s_data_wordtype[] = {\n' % variable_name)
|
||||
|
||||
- for word_index in xrange(0, len(data), 8):
|
||||
+ for word_index in range(0, len(data), 8):
|
||||
word_chunk = data[word_index:word_index + 8].ljust(8, '\x00')
|
||||
stream.write('0x%016X, ' % struct.unpack('<Q', word_chunk))
|
||||
if (word_index / 8) % 4 == 3:
|
||||
@@ -111,7 +110,7 @@
|
||||
stream.write('const char k%s_data[] =\n' % variable_name)
|
||||
# Output 16bytes per line.
|
||||
chunk_size = 16
|
||||
- for index in xrange(0, len(data), chunk_size):
|
||||
+ for index in range(0, len(data), chunk_size):
|
||||
chunk = data[index:index + chunk_size]
|
||||
stream.write('"')
|
||||
stream.writelines(r'\x%02X' % ord(c) for c in chunk)
|
||||
@@ -126,36 +125,50 @@
|
||||
if type(codepoint_list) is int:
|
||||
codepoint_list = (codepoint_list,)
|
||||
if codepoint_list is None or len(codepoint_list) == 0:
|
||||
- return 'null'
|
||||
- result = r'"'
|
||||
+ return b'null'
|
||||
+ result = b'"'
|
||||
for codepoint in codepoint_list:
|
||||
- utf16_string = unichr(codepoint).encode('utf-16be')
|
||||
+ utf16_string = chr(codepoint).encode('utf-16be')
|
||||
if len(utf16_string) == 2:
|
||||
(u0, l0) = utf16_string
|
||||
- result += r'\u%02X%02X' % (ord(u0), ord(l0))
|
||||
+ result += br'\u%02X%02X' % (u0, l0)
|
||||
else:
|
||||
(u0, l0, u1, l1) = utf16_string
|
||||
- result += r'\u%02X%02X\u%02X%02X' % (ord(u0), ord(l0), ord(u1), ord(l1))
|
||||
- result += r'"'
|
||||
+ result += br'\u%02X%02X\u%02X%02X' % (u0, l0, u1, l1)
|
||||
+ result += b'"'
|
||||
return result
|
||||
|
||||
|
||||
def SkipLineComment(stream, comment_prefix='#'):
|
||||
"""Skips line comments from stream."""
|
||||
for line in stream:
|
||||
+ if isinstance(line, bytes):
|
||||
+ if isinstance(comment_prefix, str):
|
||||
+ comment_prefix = comment_prefix.encode('utf-8')
|
||||
+ line_ending = b'\n'
|
||||
+ else:
|
||||
+ line_ending = '\n'
|
||||
stripped_line = line.strip()
|
||||
if stripped_line and not stripped_line.startswith(comment_prefix):
|
||||
- yield line.rstrip('\n')
|
||||
+ yield line.rstrip(line_ending)
|
||||
|
||||
|
||||
def ParseColumnStream(stream, num_column=None, delimiter=None):
|
||||
"""Returns parsed columns read from stream."""
|
||||
if num_column is None:
|
||||
for line in stream:
|
||||
- yield line.rstrip('\n').split(delimiter)
|
||||
+ if isinstance(line, bytes):
|
||||
+ line_ending = b'\n'
|
||||
+ else:
|
||||
+ line_ending = '\n'
|
||||
+ yield line.rstrip(line_ending).split(delimiter)
|
||||
else:
|
||||
for line in stream:
|
||||
- yield line.rstrip('\n').split(delimiter)[:num_column]
|
||||
+ if isinstance(line, bytes):
|
||||
+ line_ending = b'\n'
|
||||
+ else:
|
||||
+ line_ending = '\n'
|
||||
+ yield line.rstrip(line_ending).split(delimiter)[:num_column]
|
||||
|
||||
|
||||
def SelectColumn(stream, column_index):
|
||||
@@ -172,5 +185,5 @@
|
||||
grouper extends the last chunk to make it an n-element chunk by adding
|
||||
appropriate value, but this returns truncated chunk.
|
||||
"""
|
||||
- for index in xrange(0, len(iterable), n):
|
||||
+ for index in range(0, len(iterable), n):
|
||||
yield iterable[index:index + n]
|
||||
--- /src/build_tools/codesign_mac.py
|
||||
+++ /src/build_tools/codesign_mac.py
|
||||
@@ -46,17 +46,17 @@
|
||||
|
||||
def RunOrDie(command):
|
||||
"""Run the command, or die if it failed."""
|
||||
- print "Running: " + command
|
||||
+ print("Running: " + command)
|
||||
try:
|
||||
output = subprocess.check_output(command, shell=True)
|
||||
- print >> sys.stderr, "=========="
|
||||
- print >> sys.stderr, "COMMAND: " + command
|
||||
- print >> sys.stderr, output
|
||||
+ print("==========", file=sys.stderr)
|
||||
+ print("COMMAND: " + command, file=sys.stderr)
|
||||
+ print(output, file=sys.stderr)
|
||||
except subprocess.CalledProcessError as e:
|
||||
- print >> sys.stderr, "=========="
|
||||
- print >> sys.stderr, "ERROR: " + command
|
||||
- print >> sys.stderr, e.output
|
||||
- print >> sys.stderr, "=========="
|
||||
+ print("==========", file=sys.stderr)
|
||||
+ print("ERROR: " + command, file=sys.stderr)
|
||||
+ print(e.output, file=sys.stderr)
|
||||
+ print("==========", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
@@ -119,18 +119,18 @@
|
||||
(options, unused_args) = parser.parse_args()
|
||||
|
||||
if not options.target:
|
||||
- print "Error: --target should be specified."
|
||||
- print parser.print_help()
|
||||
+ print("Error: --target should be specified.")
|
||||
+ print(parser.print_help())
|
||||
sys.exit(1)
|
||||
|
||||
return options
|
||||
|
||||
|
||||
def DumpEnviron():
|
||||
- print "=== os.environ ==="
|
||||
+ print("=== os.environ ===")
|
||||
for key in sorted(os.environ):
|
||||
- print "%s = %s" % (key, os.getenv(key))
|
||||
- print "=================="
|
||||
+ print("%s = %s" % (key, os.getenv(key)))
|
||||
+ print("==================")
|
||||
|
||||
|
||||
def main():
|
||||
--- /src/build_tools/copy_dll_and_symbol.py
|
||||
+++ /src/build_tools/copy_dll_and_symbol.py
|
||||
@@ -38,7 +38,7 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
-from util import PrintErrorAndExit
|
||||
+from .util import PrintErrorAndExit
|
||||
|
||||
def ParseOption():
|
||||
"""Parse command line options."""
|
||||
@@ -98,7 +98,7 @@
|
||||
if _GetLastModifiedTime(src) <= target_file_mtime:
|
||||
# Older file found. Ignore.
|
||||
continue
|
||||
- print 'Copying %s to %s' % (src, target_file_abspath)
|
||||
+ print('Copying %s to %s' % (src, target_file_abspath))
|
||||
shutil.copy2(src, target_file_abspath)
|
||||
break
|
||||
|
||||
--- /src/build_tools/copy_file.py
|
||||
+++ /src/build_tools/copy_file.py
|
||||
@@ -52,7 +52,7 @@
|
||||
Args:
|
||||
message: The error message to be printed to stderr.
|
||||
"""
|
||||
- print >>sys.stderr, message
|
||||
+ print(message, file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
--- /src/build_tools/copy_qt_frameworks_mac.py
|
||||
+++ /src/build_tools/copy_qt_frameworks_mac.py
|
||||
@@ -41,9 +41,9 @@
|
||||
import optparse
|
||||
import os
|
||||
|
||||
-from copy_file import CopyFiles
|
||||
-from util import PrintErrorAndExit
|
||||
-from util import RunOrDie
|
||||
+from .copy_file import CopyFiles
|
||||
+from .util import PrintErrorAndExit
|
||||
+from .util import RunOrDie
|
||||
|
||||
|
||||
def ParseOption():
|
||||
--- /src/build_tools/embed_file.py
|
||||
+++ /src/build_tools/embed_file.py
|
||||
@@ -46,10 +46,10 @@
|
||||
|
||||
def _FormatAsUint64LittleEndian(s):
|
||||
"""Formats a string as uint64 value in little endian order."""
|
||||
- for _ in xrange(len(s), 8):
|
||||
- s += '\0'
|
||||
+ for _ in range(len(s), 8):
|
||||
+ s += b'\0'
|
||||
s = s[::-1] # Reverse the string
|
||||
- return '0x%s' % binascii.b2a_hex(s)
|
||||
+ return b'0x%b' % binascii.b2a_hex(s)
|
||||
|
||||
|
||||
def main():
|
||||
@@ -57,30 +57,30 @@
|
||||
with open(opts.input, 'rb') as infile:
|
||||
with open(opts.output, 'wb') as outfile:
|
||||
outfile.write(
|
||||
- '#ifdef MOZC_EMBEDDED_FILE_%(name)s\n'
|
||||
- '#error "%(name)s was already included or defined elsewhere"\n'
|
||||
- '#else\n'
|
||||
- '#define MOZC_EMBEDDED_FILE_%(name)s\n'
|
||||
- 'const uint64 %(name)s_data[] = {\n'
|
||||
- % {'name': opts.name})
|
||||
+ b'#ifdef MOZC_EMBEDDED_FILE_%(name)b\n'
|
||||
+ b'#error "%(name)b was already included or defined elsewhere"\n'
|
||||
+ b'#else\n'
|
||||
+ b'#define MOZC_EMBEDDED_FILE_%(name)b\n'
|
||||
+ b'const uint64 %(name)b_data[] = {\n'
|
||||
+ % {b'name': opts.name.encode('utf-8')})
|
||||
|
||||
while True:
|
||||
chunk = infile.read(8)
|
||||
if not chunk:
|
||||
break
|
||||
- outfile.write(' ')
|
||||
+ outfile.write(b' ')
|
||||
outfile.write(_FormatAsUint64LittleEndian(chunk))
|
||||
- outfile.write(',\n')
|
||||
+ outfile.write(b',\n')
|
||||
|
||||
outfile.write(
|
||||
- '};\n'
|
||||
- 'const EmbeddedFile %(name)s = {\n'
|
||||
- ' %(name)s_data,\n'
|
||||
- ' %(size)d,\n'
|
||||
- '};\n'
|
||||
- '#endif // MOZC_EMBEDDED_FILE_%(name)s\n'
|
||||
- % {'name': opts.name,
|
||||
- 'size': os.stat(opts.input).st_size})
|
||||
+ b'};\n'
|
||||
+ b'const EmbeddedFile %(name)b = {\n'
|
||||
+ b' %(name)b_data,\n'
|
||||
+ b' %(size)d,\n'
|
||||
+ b'};\n'
|
||||
+ b'#endif // MOZC_EMBEDDED_FILE_%(name)b\n'
|
||||
+ % {b'name': opts.name.encode('utf-8'),
|
||||
+ b'size': os.stat(opts.input).st_size})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
--- /src/build_tools/embed_pathname.py
|
||||
+++ /src/build_tools/embed_pathname.py
|
||||
@@ -28,7 +28,7 @@
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
-"""A script to embed the given (relative) path name to C/C++ characters array.
|
||||
+r"""A script to embed the given (relative) path name to C/C++ characters array.
|
||||
|
||||
Example:
|
||||
./embed_pathname.py --path_to_be_embedded=d:\data\mozc
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
(options, unused_args) = parser.parse_args()
|
||||
if not all(vars(options).values()):
|
||||
- print parser.print_help()
|
||||
+ print(parser.print_help())
|
||||
sys.exit(1)
|
||||
|
||||
return options
|
||||
@@ -63,7 +63,7 @@
|
||||
opt = ParseOption()
|
||||
path = os.path.abspath(opt.path_to_be_embedded)
|
||||
# TODO(yukawa): Consider the case of non-ASCII characters.
|
||||
- escaped_path = path.encode('string-escape')
|
||||
+ escaped_path = path.replace('\\', '\\\\')
|
||||
with open(opt.output, 'w') as output_file:
|
||||
output_file.write(
|
||||
'const char %s[] = "%s";\n' % (opt.constant_name, escaped_path))
|
||||
--- /src/build_tools/ensure_gyp_module_path.py
|
||||
+++ /src/build_tools/ensure_gyp_module_path.py
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
(options, _) = parser.parse_args()
|
||||
if not options.expected:
|
||||
- print parser.print_help()
|
||||
+ print(parser.print_help())
|
||||
sys.exit(1)
|
||||
|
||||
return options
|
||||
@@ -59,20 +59,20 @@
|
||||
opt = ParseOption()
|
||||
expected_path = os.path.abspath(opt.expected)
|
||||
if not os.path.exists(expected_path):
|
||||
- print '%s does not exist.' % expected_path
|
||||
+ print('%s does not exist.' % expected_path)
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
import gyp # NOLINT
|
||||
except ImportError as e:
|
||||
- print 'import gyp failed: %s' % e
|
||||
+ print('import gyp failed: %s' % e)
|
||||
sys.exit(1)
|
||||
|
||||
actual_path = os.path.abspath(gyp.__path__[0])
|
||||
if expected_path != actual_path:
|
||||
- print 'Unexpected gyp module is loaded on this environment.'
|
||||
- print ' expected: %s' % expected_path
|
||||
- print ' actual : %s' % actual_path
|
||||
+ print('Unexpected gyp module is loaded on this environment.')
|
||||
+ print(' expected: %s' % expected_path)
|
||||
+ print(' actual : %s' % actual_path)
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
--- /src/build_tools/gen_win32_resource_header.py
|
||||
+++ /src/build_tools/gen_win32_resource_header.py
|
||||
@@ -39,7 +39,7 @@
|
||||
__author__ = "yukawa"
|
||||
|
||||
import logging
|
||||
-import mozc_version
|
||||
+from . import mozc_version
|
||||
import optparse
|
||||
import os
|
||||
import sys
|
||||
--- /src/build_tools/mozc_version.py
|
||||
+++ /src/build_tools/mozc_version.py
|
||||
@@ -94,7 +94,7 @@
|
||||
last_digit = TARGET_PLATFORM_TO_DIGIT.get(target_platform, None)
|
||||
if last_digit is None:
|
||||
logging.critical('target_platform %s is invalid. Accetable ones are %s',
|
||||
- target_platform, TARGET_PLATFORM_TO_DIGIT.keys())
|
||||
+ target_platform, list(TARGET_PLATFORM_TO_DIGIT.keys()))
|
||||
sys.exit(1)
|
||||
|
||||
if not revision:
|
||||
@@ -314,13 +314,14 @@
|
||||
self._properties = {}
|
||||
if not os.path.isfile(path):
|
||||
return
|
||||
- for line in open(path):
|
||||
- matchobj = re.match(r'(\w+)=(.*)', line.strip())
|
||||
- if matchobj:
|
||||
- var = matchobj.group(1)
|
||||
- val = matchobj.group(2)
|
||||
- if var not in self._properties:
|
||||
- self._properties[var] = val
|
||||
+ with open(path) as file:
|
||||
+ for line in file:
|
||||
+ matchobj = re.match(r'(\w+)=(.*)', line.strip())
|
||||
+ if matchobj:
|
||||
+ var = matchobj.group(1)
|
||||
+ val = matchobj.group(2)
|
||||
+ if var not in self._properties:
|
||||
+ self._properties[var] = val
|
||||
|
||||
# Check mandatory properties.
|
||||
for key in VERSION_PROPERTIES:
|
@ -1,600 +0,0 @@
|
||||
https://github.com/google/mozc/issues/462
|
||||
|
||||
--- /src/build_tools/redirect.py
|
||||
+++ /src/build_tools/redirect.py
|
||||
@@ -58,14 +58,15 @@
|
||||
process = subprocess.Popen(sys.argv, stdout=subprocess.PIPE,
|
||||
universal_newlines=True)
|
||||
except:
|
||||
- print '=========='
|
||||
- print ' ERROR: %s' % ' '.join(sys.argv)
|
||||
- print '=========='
|
||||
+ print('==========')
|
||||
+ print(' ERROR: %s' % ' '.join(sys.argv))
|
||||
+ print('==========')
|
||||
raise
|
||||
(stdout_content, _) = process.communicate()
|
||||
# Write the stdout content to the output file.
|
||||
output_file = open(output_file_name, 'w')
|
||||
output_file.write(stdout_content)
|
||||
+ output_file.close()
|
||||
return process.wait()
|
||||
|
||||
if __name__ == '__main__':
|
||||
--- /src/build_tools/run_after_chdir.py
|
||||
+++ /src/build_tools/run_after_chdir.py
|
||||
@@ -57,7 +57,7 @@
|
||||
sys.argv.insert(0, sys.executable) # Inject the python interpreter path.
|
||||
# We don't capture stdout and stderr from Popen. The output will just
|
||||
# be emitted to a terminal or console.
|
||||
- print sys.argv
|
||||
+ print(sys.argv)
|
||||
sys.exit(subprocess.call(sys.argv))
|
||||
|
||||
if __name__ == '__main__':
|
||||
--- /src/build_tools/serialized_string_array_builder.py
|
||||
+++ /src/build_tools/serialized_string_array_builder.py
|
||||
@@ -58,11 +58,11 @@
|
||||
f.write(struct.pack('<I', array_size))
|
||||
|
||||
# Offset and length array of (4 + 4) * array_size bytes.
|
||||
- for i in xrange(array_size):
|
||||
+ for i in range(array_size):
|
||||
f.write(struct.pack('<I', offsets[i]))
|
||||
f.write(struct.pack('<I', lengths[i]))
|
||||
|
||||
# Strings chunk.
|
||||
- for i in xrange(array_size):
|
||||
+ for i in range(array_size):
|
||||
f.write(strings[i])
|
||||
- f.write('\0')
|
||||
+ f.write(b'\0')
|
||||
--- /src/build_tools/test_tools/gtest_report.py
|
||||
+++ /src/build_tools/test_tools/gtest_report.py
|
||||
@@ -36,9 +36,9 @@
|
||||
|
||||
__author__ = "nona"
|
||||
|
||||
-import cStringIO as StringIO
|
||||
+import io
|
||||
import logging
|
||||
-from xml.etree import cElementTree as ElementTree
|
||||
+from xml.etree import ElementTree
|
||||
|
||||
|
||||
class Failure(object):
|
||||
@@ -87,13 +87,13 @@
|
||||
"""Returns summarized error report text."""
|
||||
if self.fail_num == 0:
|
||||
return ''
|
||||
- output = StringIO.StringIO()
|
||||
+ output = io.StringIO()
|
||||
for testcase in self.testcases:
|
||||
if not testcase.failures:
|
||||
continue
|
||||
- print >>output, '%s.%s:' % (self.name, testcase.name)
|
||||
+ print('%s.%s:' % (self.name, testcase.name), file=output)
|
||||
for failure in testcase.failures:
|
||||
- print >>output, failure.contents.encode('utf-8')
|
||||
+ print(failure.contents.encode('utf-8'), file=output)
|
||||
return output.getvalue()
|
||||
|
||||
@classmethod
|
||||
--- /src/build_tools/test_tools/test_launcher.py
|
||||
+++ /src/build_tools/test_tools/test_launcher.py
|
||||
@@ -101,11 +101,11 @@
|
||||
time.sleep(1)
|
||||
try:
|
||||
shutil.rmtree(self._path)
|
||||
- except OSError, e:
|
||||
+ except OSError as e:
|
||||
logging.error('Failed to remove %s. error: %s', self._path, e)
|
||||
|
||||
|
||||
-def _ExecuteTest((command, gtest_report_dir)):
|
||||
+def _ExecuteTest(args):
|
||||
"""Executes tests with specified Test command.
|
||||
|
||||
Args:
|
||||
@@ -122,6 +122,7 @@
|
||||
module, which is used in multiprocessing module.
|
||||
(http://docs.python.org/library/pickle.html)
|
||||
"""
|
||||
+ (command, gtest_report_dir) = args
|
||||
binary = command[0]
|
||||
binary_filename = os.path.basename(binary)
|
||||
tmp_dir = tempfile.mkdtemp()
|
||||
--- /src/build_tools/tweak_data.py
|
||||
+++ /src/build_tools/tweak_data.py
|
||||
@@ -55,7 +55,7 @@
|
||||
The value for the variable if the variable is defined in the
|
||||
environment. Otherwise original string is returned.
|
||||
"""
|
||||
- if environment.has_key(matchobj.group(1)):
|
||||
+ if matchobj.group(1) in environment:
|
||||
return environment[matchobj.group(1)]
|
||||
return matchobj.group(0)
|
||||
|
||||
--- /src/build_tools/tweak_info_plist.py
|
||||
+++ /src/build_tools/tweak_info_plist.py
|
||||
@@ -42,8 +42,8 @@
|
||||
import logging
|
||||
import optparse
|
||||
import sys
|
||||
-import mozc_version
|
||||
-import tweak_data
|
||||
+from . import mozc_version
|
||||
+from . import tweak_data
|
||||
|
||||
_COPYRIGHT_YEAR = datetime.date.today().year
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
version = mozc_version.MozcVersion(options.version_file)
|
||||
|
||||
- copyright_message = (u'© %d Google Inc.' % _COPYRIGHT_YEAR).encode('utf-8')
|
||||
+ copyright_message = ('© %d Google Inc.' % _COPYRIGHT_YEAR).encode('utf-8')
|
||||
long_version = version.GetVersionString()
|
||||
short_version = version.GetVersionInFormat('@MAJOR@.@MINOR@.@BUILD@')
|
||||
|
||||
--- /src/build_tools/tweak_info_plist_strings.py
|
||||
+++ /src/build_tools/tweak_info_plist_strings.py
|
||||
@@ -40,7 +40,7 @@
|
||||
import logging
|
||||
import optparse
|
||||
import sys
|
||||
-import tweak_data
|
||||
+from . import tweak_data
|
||||
|
||||
_COPYRIGHT_YEAR = datetime.date.today().year
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
if options.branding == 'GoogleJapaneseInput':
|
||||
variables = {
|
||||
'CF_BUNDLE_NAME_EN': 'Google Japanese Input',
|
||||
- 'CF_BUNDLE_NAME_JA': u'Google 日本語入力'.encode('utf-8'),
|
||||
+ 'CF_BUNDLE_NAME_JA': 'Google 日本語入力'.encode('utf-8'),
|
||||
'NS_HUMAN_READABLE_COPYRIGHT': copyright_message,
|
||||
'INPUT_MODE_ANNOTATION': 'Google',
|
||||
}
|
||||
--- /src/build_tools/tweak_macinstaller_script.py
|
||||
+++ /src/build_tools/tweak_macinstaller_script.py
|
||||
@@ -39,7 +39,7 @@
|
||||
import logging
|
||||
import optparse
|
||||
|
||||
-import mozc_version
|
||||
+from . import mozc_version
|
||||
|
||||
|
||||
def _ReplaceVariables(data, environment):
|
||||
--- /src/build_tools/tweak_pkgproj.py
|
||||
+++ /src/build_tools/tweak_pkgproj.py
|
||||
@@ -45,7 +45,7 @@
|
||||
import os
|
||||
import plistlib
|
||||
import re
|
||||
-import mozc_version
|
||||
+from . import mozc_version
|
||||
|
||||
from os import path
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
The value for the variable if the variable is defined in the
|
||||
environment. Otherwise original string is returned.
|
||||
"""
|
||||
- if environment.has_key(matchobj.group(1)):
|
||||
+ if matchobj.group(1) in environment:
|
||||
return environment[matchobj.group(1)]
|
||||
return matchobj.group(0)
|
||||
|
||||
--- /src/build_tools/util.py
|
||||
+++ /src/build_tools/util.py
|
||||
@@ -73,11 +73,11 @@
|
||||
return 1
|
||||
|
||||
|
||||
-class RunOrDieError(StandardError):
|
||||
+class RunOrDieError(Exception):
|
||||
"""The exception class for RunOrDie."""
|
||||
|
||||
def __init__(self, message):
|
||||
- StandardError.__init__(self, message)
|
||||
+ Exception.__init__(self, message)
|
||||
|
||||
|
||||
def RunOrDie(argv):
|
||||
@@ -105,7 +105,7 @@
|
||||
return # Do nothing if not exist.
|
||||
if IsWindows():
|
||||
# Read-only files cannot be deleted on Windows.
|
||||
- os.chmod(file_name, 0700)
|
||||
+ os.chmod(file_name, 0o700)
|
||||
logging.debug('Removing file: %s', file_name)
|
||||
os.unlink(file_name)
|
||||
|
||||
--- /src/build_tools/zlib_util.py
|
||||
+++ /src/build_tools/zlib_util.py
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 4:
|
||||
- print >>sys.stderr, 'Invalid arguments'
|
||||
+ print('Invalid arguments', file=sys.stderr)
|
||||
return
|
||||
if sys.argv[1] == 'compress':
|
||||
Compress(sys.argv[2], sys.argv[3])
|
||||
@@ -66,7 +66,7 @@
|
||||
if sys.argv[1] == 'decompress':
|
||||
Decompress(sys.argv[2], sys.argv[3])
|
||||
return
|
||||
- print >>sys.stderr, 'Unknown command:', sys.argv[1]
|
||||
+ print('Unknown command:', sys.argv[1], file=sys.stderr)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
--- /src/composer/internal/gen_typing_model.py
|
||||
+++ /src/composer/internal/gen_typing_model.py
|
||||
@@ -54,14 +54,13 @@
|
||||
__author__ = "noriyukit"
|
||||
|
||||
import bisect
|
||||
-import codecs
|
||||
import collections
|
||||
import optparse
|
||||
import struct
|
||||
|
||||
UNDEFINED_COST = -1
|
||||
-MAX_UINT16 = struct.unpack('H', '\xFF\xFF')[0]
|
||||
-MAX_UINT8 = struct.unpack('B', '\xFF')[0]
|
||||
+MAX_UINT16 = struct.unpack('H', b'\xFF\xFF')[0]
|
||||
+MAX_UINT8 = struct.unpack('B', b'\xFF')[0]
|
||||
|
||||
|
||||
def ParseArgs():
|
||||
@@ -113,7 +112,7 @@
|
||||
sorted_values = list(sorted(set(values)))
|
||||
mapping_table = sorted_values[0]
|
||||
mapping_table_size_without_special_value = mapping_table_size - 1
|
||||
- span = len(sorted_values) / (mapping_table_size_without_special_value - 1)
|
||||
+ span = len(sorted_values) // (mapping_table_size_without_special_value - 1)
|
||||
mapping_table = [sorted_values[i * span]
|
||||
for i
|
||||
in range(0, mapping_table_size_without_special_value - 1)]
|
||||
@@ -150,7 +149,7 @@
|
||||
|
||||
def GetValueTable(unique_characters, mapping_table, dictionary):
|
||||
result = []
|
||||
- for key, value in dictionary.iteritems():
|
||||
+ for key, value in dictionary.items():
|
||||
index = GetIndexFromKey(unique_characters, key)
|
||||
while len(result) <= index:
|
||||
result.append(len(mapping_table) - 1)
|
||||
@@ -167,13 +166,13 @@
|
||||
romaji_transition_cost)
|
||||
with open(output_path, 'wb') as f:
|
||||
f.write(struct.pack('<I', len(unique_characters)))
|
||||
- f.write(''.join(unique_characters))
|
||||
+ f.write(''.join(unique_characters).encode('utf-8'))
|
||||
offset = 4 + len(unique_characters)
|
||||
|
||||
# Add padding to place value list size at 4-byte boundary.
|
||||
if offset % 4:
|
||||
padding_size = 4 - offset % 4
|
||||
- f.write('\x00' * padding_size)
|
||||
+ f.write(b'\x00' * padding_size)
|
||||
offset += padding_size
|
||||
|
||||
f.write(struct.pack('<I', len(value_list)))
|
||||
@@ -184,7 +183,7 @@
|
||||
# Add padding to place mapping_table at 4-byte boundary.
|
||||
if offset % 4:
|
||||
padding_size = 4 - offset % 4
|
||||
- f.write('\x00' * padding_size)
|
||||
+ f.write(b'\x00' * padding_size)
|
||||
offset += padding_size
|
||||
|
||||
for v in mapping_table:
|
||||
@@ -198,7 +197,8 @@
|
||||
# - trigram['vw']['x'] = -500 * log(P(x | 'vw'))
|
||||
unigram = {}
|
||||
trigram = collections.defaultdict(dict)
|
||||
- for line in codecs.open(options.input_path, 'r', encoding='utf-8'):
|
||||
+ input_file = open(options.input_path, 'r', encoding='utf-8')
|
||||
+ for line in input_file:
|
||||
line = line.rstrip()
|
||||
ngram, cost = line.split('\t')
|
||||
cost = int(cost)
|
||||
@@ -206,6 +206,7 @@
|
||||
unigram[ngram] = cost
|
||||
else:
|
||||
trigram[ngram[:-1]][ngram[-1]] = cost
|
||||
+ input_file.close()
|
||||
|
||||
# Calculate ngram-related cost for each 'vw' and 'x':
|
||||
# -500 * log( P('x' | 'vw') / P('x') )
|
||||
--- /src/converter/gen_boundary_data.py
|
||||
+++ /src/converter/gen_boundary_data.py
|
||||
@@ -70,7 +70,8 @@
|
||||
def LoadPatterns(file):
|
||||
prefix = []
|
||||
suffix = []
|
||||
- for line in open(file, 'r'):
|
||||
+ fh = open(file, 'r')
|
||||
+ for line in fh:
|
||||
if len(line) <= 1 or line[0] == '#':
|
||||
continue
|
||||
fields = line.split()
|
||||
@@ -84,8 +85,9 @@
|
||||
elif label == 'SUFFIX':
|
||||
suffix.append([re.compile(PatternToRegexp(feature)), cost])
|
||||
else:
|
||||
- print 'format error %s' % (line)
|
||||
+ print('format error %s' % (line))
|
||||
sys.exit(0)
|
||||
+ fh.close()
|
||||
return (prefix, suffix)
|
||||
|
||||
|
||||
@@ -100,19 +102,23 @@
|
||||
|
||||
def LoadFeatures(filename):
|
||||
features = []
|
||||
- for line in open(filename, 'r'):
|
||||
+ fh = open(filename, 'r')
|
||||
+ for line in fh:
|
||||
fields = line.split()
|
||||
features.append(fields[1])
|
||||
+ fh.close()
|
||||
return features
|
||||
|
||||
|
||||
def CountSpecialPos(filename):
|
||||
count = 0
|
||||
- for line in open(filename, 'r'):
|
||||
+ fh = open(filename, 'r')
|
||||
+ for line in fh:
|
||||
line = line.rstrip()
|
||||
if not line or line[0] == '#':
|
||||
continue
|
||||
count += 1
|
||||
+ fh.close()
|
||||
return count
|
||||
|
||||
|
||||
@@ -141,7 +147,7 @@
|
||||
f.write(struct.pack('<H', GetCost(prefix, feature)))
|
||||
f.write(struct.pack('<H', GetCost(suffix, feature)))
|
||||
|
||||
- for _ in xrange(num_special_pos):
|
||||
+ for _ in range(num_special_pos):
|
||||
f.write(struct.pack('<H', 0))
|
||||
f.write(struct.pack('<H', 0))
|
||||
|
||||
--- /src/converter/gen_quality_regression_test_data.py
|
||||
+++ /src/converter/gen_quality_regression_test_data.py
|
||||
@@ -84,7 +84,7 @@
|
||||
else _ENABLED)
|
||||
id = issue.attributes['id'].value
|
||||
target = GetText(issue.getElementsByTagName('target'))
|
||||
- for detail in issue.getElementsByTagName(u'detail'):
|
||||
+ for detail in issue.getElementsByTagName('detail'):
|
||||
fields = []
|
||||
fields.append('mozcsu_%s' % id)
|
||||
for key in ('reading', 'output', 'actionStatus', 'rank', 'accuracy'):
|
||||
@@ -104,19 +104,19 @@
|
||||
|
||||
def GenerateHeader(files):
|
||||
try:
|
||||
- print 'namespace mozc{'
|
||||
- print 'struct TestCase {'
|
||||
- print ' const bool enabled;'
|
||||
- print ' const char *tsv;'
|
||||
- print '} kTestData[] = {'
|
||||
+ print('namespace mozc{')
|
||||
+ print('struct TestCase {')
|
||||
+ print(' const bool enabled;')
|
||||
+ print(' const char *tsv;')
|
||||
+ print('} kTestData[] = {')
|
||||
for file in files:
|
||||
for enabled, line in ParseFile(file):
|
||||
- print ' {%s, "%s"},' % (enabled, EscapeString(line))
|
||||
- print ' {false, nullptr},'
|
||||
- print '};'
|
||||
- print '} // namespace mozc'
|
||||
+ print(' {%s, "%s"},' % (enabled, EscapeString(line)))
|
||||
+ print(' {false, nullptr},')
|
||||
+ print('};')
|
||||
+ print('} // namespace mozc')
|
||||
except:
|
||||
- print 'cannot open %s' % (file)
|
||||
+ print('cannot open %s' % (file))
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
--- /src/converter/gen_segmenter_code.py
|
||||
+++ /src/converter/gen_segmenter_code.py
|
||||
@@ -54,18 +54,22 @@
|
||||
pos = {}
|
||||
max_id = 0
|
||||
|
||||
- for line in open(id_file, "r"):
|
||||
+ fh = open(id_file, "r")
|
||||
+ for line in fh:
|
||||
fields = line.split()
|
||||
pos[fields[1]] = fields[0]
|
||||
max_id = max(int(fields[0]), max_id)
|
||||
+ fh.close()
|
||||
|
||||
max_id = max_id + 1
|
||||
- for line in open(special_pos_file, "r"):
|
||||
+ fh = open(special_pos_file, "r")
|
||||
+ for line in fh:
|
||||
if len(line) <= 1 or line[0] == '#':
|
||||
continue
|
||||
fields = line.split()
|
||||
pos[fields[0]] = ("%d" % max_id)
|
||||
max_id = max_id + 1
|
||||
+ fh.close()
|
||||
|
||||
return pos
|
||||
|
||||
@@ -79,8 +83,7 @@
|
||||
pat = re.compile(PatternToRegexp(pattern))
|
||||
min = -1;
|
||||
max = -1;
|
||||
- keys = pos.keys()
|
||||
- keys.sort()
|
||||
+ keys = sorted(pos.keys())
|
||||
|
||||
range = []
|
||||
|
||||
@@ -107,7 +110,7 @@
|
||||
tmp.append("(%s >= %s && %s <= %s)" % (name, r[0], name, r[1]))
|
||||
|
||||
if len(tmp) == 0:
|
||||
- print "FATAL: No rule fiind %s" % (pattern)
|
||||
+ print("FATAL: No rule fiind %s" % (pattern))
|
||||
sys.exit(-1)
|
||||
|
||||
return " || ".join(tmp)
|
||||
@@ -115,19 +118,21 @@
|
||||
def main():
|
||||
pos = ReadPOSID(sys.argv[1], sys.argv[2])
|
||||
|
||||
- print HEADER % (len(pos.keys()), len(pos.keys()))
|
||||
+ print(HEADER % (len(pos.keys()), len(pos.keys())))
|
||||
|
||||
- for line in open(sys.argv[3], "r"):
|
||||
+ fh = open(sys.argv[3], "r")
|
||||
+ for line in fh:
|
||||
if len(line) <= 1 or line[0] == '#':
|
||||
continue
|
||||
(l, r, result) = line.split()
|
||||
result = result.lower()
|
||||
lcond = GetRange(pos, l, "rid") or "true";
|
||||
rcond = GetRange(pos, r, "lid") or "true";
|
||||
- print " // %s %s %s" % (l, r, result)
|
||||
- print " if ((%s) && (%s)) { return %s; }" % (lcond, rcond, result)
|
||||
+ print(" // %s %s %s" % (l, r, result))
|
||||
+ print(" if ((%s) && (%s)) { return %s; }" % (lcond, rcond, result))
|
||||
+ fh.close()
|
||||
|
||||
- print FOOTER
|
||||
+ print(FOOTER)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
--- /src/data_manager/gen_connection_data.py
|
||||
+++ /src/data_manager/gen_connection_data.py
|
||||
@@ -32,8 +32,7 @@
|
||||
|
||||
__author__ = "hidehiko"
|
||||
|
||||
-import cStringIO as StringIO
|
||||
-import itertools
|
||||
+import io
|
||||
import logging
|
||||
import optparse
|
||||
import os
|
||||
@@ -45,7 +44,7 @@
|
||||
INVALID_COST = 30000
|
||||
INVALID_1BYTE_COST = 255
|
||||
RESOLUTION_FOR_1BYTE = 64
|
||||
-FILE_MAGIC = '\xAB\xCD'
|
||||
+FILE_MAGIC = b'\xAB\xCD'
|
||||
|
||||
FALSE_VALUES = ['f', 'false', '0']
|
||||
TRUE_VALUES = ['t', 'true', '1']
|
||||
@@ -79,28 +78,28 @@
|
||||
# The result is a square matrix.
|
||||
mat_size = pos_size + special_pos_size
|
||||
|
||||
- matrix = [[0] * mat_size for _ in xrange(mat_size)]
|
||||
+ matrix = [[0] * mat_size for _ in range(mat_size)]
|
||||
with open(text_connection_file) as stream:
|
||||
stream = code_generator_util.SkipLineComment(stream)
|
||||
# The first line contains the matrix column/row size.
|
||||
- size = stream.next().rstrip()
|
||||
+ size = next(stream).rstrip()
|
||||
assert (int(size) == pos_size), '%s != %d' % (size, pos_size)
|
||||
|
||||
for array_index, cost in enumerate(stream):
|
||||
cost = int(cost.rstrip())
|
||||
- rid = array_index / pos_size
|
||||
+ rid = array_index // pos_size
|
||||
lid = array_index % pos_size
|
||||
if rid == 0 and lid == 0:
|
||||
cost = 0
|
||||
matrix[rid][lid] = cost
|
||||
|
||||
# Fill INVALID_COST in matrix elements for special POS.
|
||||
- for rid in xrange(pos_size, mat_size):
|
||||
- for lid in xrange(1, mat_size): # Skip EOS
|
||||
+ for rid in range(pos_size, mat_size):
|
||||
+ for lid in range(1, mat_size): # Skip EOS
|
||||
matrix[rid][lid] = INVALID_COST
|
||||
|
||||
- for lid in xrange(pos_size, mat_size):
|
||||
- for rid in xrange(1, mat_size): # Skip BOS
|
||||
+ for lid in range(pos_size, mat_size):
|
||||
+ for rid in range(1, mat_size): # Skip BOS
|
||||
matrix[rid][lid] = INVALID_COST
|
||||
|
||||
return matrix
|
||||
@@ -116,7 +115,7 @@
|
||||
# Heuristically, we do not compress INVALID_COST.
|
||||
continue
|
||||
m[cost] = m.get(cost, 0) + 1
|
||||
- mode_value = max(m.iteritems(), key=lambda (_, count): count)[0]
|
||||
+ mode_value = max(m.items(), key=lambda x: x[1])[0]
|
||||
result.append(mode_value)
|
||||
return result
|
||||
|
||||
@@ -126,8 +125,8 @@
|
||||
# list, and fill None into the matrix if it equals to the corresponding
|
||||
# mode value.
|
||||
assert len(matrix) == len(mode_value_list)
|
||||
- for row, mode_value in itertools.izip(matrix, mode_value_list):
|
||||
- for index in xrange(len(row)):
|
||||
+ for row, mode_value in zip(matrix, mode_value_list):
|
||||
+ for index in range(len(row)):
|
||||
if row[index] == mode_value:
|
||||
row[index] = None
|
||||
|
||||
@@ -179,7 +178,7 @@
|
||||
resolution = RESOLUTION_FOR_1BYTE
|
||||
else:
|
||||
resolution = 1
|
||||
- stream = StringIO.StringIO()
|
||||
+ stream = io.BytesIO()
|
||||
|
||||
# Output header.
|
||||
stream.write(FILE_MAGIC)
|
||||
@@ -194,7 +193,7 @@
|
||||
|
||||
# 4 bytes alignment.
|
||||
if len(mode_value_list) % 2:
|
||||
- stream.write('\x00\x00')
|
||||
+ stream.write(b'\x00\x00')
|
||||
|
||||
# Process each row:
|
||||
for row in matrix:
|
||||
@@ -218,7 +217,7 @@
|
||||
if cost == INVALID_COST:
|
||||
cost = INVALID_1BYTE_COST
|
||||
else:
|
||||
- cost /= resolution
|
||||
+ cost //= resolution
|
||||
assert cost != INVALID_1BYTE_COST
|
||||
values.append(cost)
|
||||
|
||||
@@ -237,7 +236,7 @@
|
||||
values_size = len(values) * 2
|
||||
|
||||
# Output the bits for a row.
|
||||
- stream.write(struct.pack('<HH', len(compact_bits) / 8, values_size))
|
||||
+ stream.write(struct.pack('<HH', len(compact_bits) // 8, values_size))
|
||||
OutputBitList(chunk_bits, stream)
|
||||
OutputBitList(compact_bits, stream)
|
||||
if use_1byte_cost:
|
@ -1,35 +0,0 @@
|
||||
https://github.com/google/mozc/issues/461
|
||||
|
||||
--- /src/data/symbol/categorized.tsv
|
||||
+++ /src/data/symbol/categorized.tsv
|
||||
@@ -405,6 +405,7 @@
|
||||
㍽ MATH たいしょう ねんごう
|
||||
㍼ MATH しょうわ ねんごう
|
||||
㍻ MATH へいせい ねんごう
|
||||
+㋿ MATH れいわ ねんごう
|
||||
|
||||
㌣ MATH せんと たんい
|
||||
㌦ MATH どる たんい
|
||||
--- /src/data/symbol/symbol.tsv
|
||||
+++ /src/data/symbol/symbol.tsv
|
||||
@@ -528,6 +528,7 @@
|
||||
記号 ㊦ した げ 丸下
|
||||
記号 ㊧ ひだり 丸左
|
||||
記号 ㊨ みぎ 丸右
|
||||
+記号 ㋿ れいわ ねんごう 年号 OTHER
|
||||
記号 ㍻ へいせい ねんごう 年号 OTHER
|
||||
記号 ㍼ しょうわ ねんごう 年号 OTHER
|
||||
記号 ㍽ たいしょう ねんごう 年号 OTHER
|
||||
--- /src/rewriter/date_rewriter.cc
|
||||
+++ /src/rewriter/date_rewriter.cc
|
||||
@@ -1239,6 +1239,10 @@
|
||||
1989,
|
||||
"平成",
|
||||
"へいせい",
|
||||
+ }, {
|
||||
+ 2019,
|
||||
+ "令和",
|
||||
+ "れいわ",
|
||||
}
|
||||
};
|
||||
|
@ -1,95 +0,0 @@
|
||||
https://github.com/google/mozc/issues/471
|
||||
|
||||
--- /src/ipc/ipc_path_manager.cc
|
||||
+++ /src/ipc/ipc_path_manager.cc
|
||||
@@ -332,9 +332,21 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
+ // Expand symbolic links in the expected server path to avoid false negatives
|
||||
+ // during comparisons of the expected server path and the actual server path.
|
||||
+ string real_server_path = server_path;
|
||||
+#ifndef OS_WIN
|
||||
+ char real_server_path_[PATH_MAX];
|
||||
+ if (realpath(server_path.c_str(), real_server_path_) == NULL) {
|
||||
+ LOG(ERROR) << "realpath failed: " << strerror(errno);
|
||||
+ return false;
|
||||
+ }
|
||||
+ real_server_path = real_server_path_;
|
||||
+#endif
|
||||
+
|
||||
// compare path name
|
||||
if (pid == server_pid_) {
|
||||
- return (server_path == server_path_);
|
||||
+ return (real_server_path == server_path_);
|
||||
}
|
||||
|
||||
server_pid_ = 0;
|
||||
@@ -344,17 +356,17 @@
|
||||
{
|
||||
std::wstring expected_server_ntpath;
|
||||
const std::map<string, std::wstring>::const_iterator it =
|
||||
- expected_server_ntpath_cache_.find(server_path);
|
||||
+ expected_server_ntpath_cache_.find(real_server_path);
|
||||
if (it != expected_server_ntpath_cache_.end()) {
|
||||
expected_server_ntpath = it->second;
|
||||
} else {
|
||||
std::wstring wide_server_path;
|
||||
- Util::UTF8ToWide(server_path, &wide_server_path);
|
||||
+ Util::UTF8ToWide(real_server_path, &wide_server_path);
|
||||
if (WinUtil::GetNtPath(wide_server_path, &expected_server_ntpath)) {
|
||||
- // Caches the relationship from |server_path| to
|
||||
- // |expected_server_ntpath| in case |server_path| is renamed later.
|
||||
+ // Caches the relationship from |real_server_path| to
|
||||
+ // |expected_server_ntpath| in case |real_server_path| is renamed later.
|
||||
// (This can happen during the updating).
|
||||
- expected_server_ntpath_cache_[server_path] = expected_server_ntpath;
|
||||
+ expected_server_ntpath_cache_[real_server_path] = expected_server_ntpath;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,9 +383,9 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
- // Here we can safely assume that |server_path| (expected one) should be
|
||||
+ // Here we can safely assume that |real_server_path| (expected one) should be
|
||||
// the same to |server_path_| (actual one).
|
||||
- server_path_ = server_path;
|
||||
+ server_path_ = real_server_path;
|
||||
server_pid_ = pid;
|
||||
}
|
||||
#endif // OS_WIN
|
||||
@@ -399,7 +411,7 @@
|
||||
#ifdef OS_LINUX
|
||||
// load from /proc/<pid>/exe
|
||||
char proc[128];
|
||||
- char filename[512];
|
||||
+ char filename[PATH_MAX];
|
||||
snprintf(proc, sizeof(proc) - 1, "/proc/%u/exe", pid);
|
||||
const ssize_t size = readlink(proc, filename, sizeof(filename) - 1);
|
||||
if (size == -1) {
|
||||
@@ -412,18 +424,18 @@
|
||||
server_pid_ = pid;
|
||||
#endif // OS_LINUX
|
||||
|
||||
- VLOG(1) << "server path: " << server_path << " " << server_path_;
|
||||
- if (server_path == server_path_) {
|
||||
+ VLOG(1) << "server path: " << real_server_path << " " << server_path_;
|
||||
+ if (real_server_path == server_path_) {
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef OS_LINUX
|
||||
- if ((server_path + " (deleted)") == server_path_) {
|
||||
- LOG(WARNING) << server_path << " on disk is modified";
|
||||
+ if ((real_server_path + " (deleted)") == server_path_) {
|
||||
+ LOG(WARNING) << real_server_path << " on disk is modified";
|
||||
// If a user updates the server binary on disk during the server is running,
|
||||
// "readlink /proc/<pid>/exe" returns a path with the " (deleted)" suffix.
|
||||
// We allow the special case.
|
||||
- server_path_ = server_path;
|
||||
+ server_path_ = real_server_path;
|
||||
return true;
|
||||
}
|
||||
#endif // OS_LINUX
|
@ -1,274 +0,0 @@
|
||||
--- /src/gyp/defines.gypi
|
||||
+++ /src/gyp/defines.gypi
|
||||
@@ -71,6 +71,12 @@
|
||||
# use_libibus represents if ibus library is used or not.
|
||||
# This option is only for Linux.
|
||||
'use_libibus%': '0',
|
||||
+
|
||||
+ # use_libgtest represents if gtest library is used or not.
|
||||
+ 'use_libgtest%': '0',
|
||||
+
|
||||
+ # use_libjsoncpp represents if jsoncpp library is used or not.
|
||||
+ 'use_libjsoncpp%': '0',
|
||||
},
|
||||
'target_defaults': {
|
||||
'defines': [
|
||||
--- /src/net/jsoncpp.gyp
|
||||
+++ /src/net/jsoncpp.gyp
|
||||
@@ -31,32 +31,57 @@
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'jsoncpp',
|
||||
- 'type': 'static_library',
|
||||
- 'variables': {
|
||||
- 'jsoncpp_root': '<(third_party_dir)/jsoncpp',
|
||||
- 'jsoncpp_srcs': [
|
||||
- '<(jsoncpp_root)/src/lib_json/json_reader.cpp',
|
||||
- '<(jsoncpp_root)/src/lib_json/json_value.cpp',
|
||||
- '<(jsoncpp_root)/src/lib_json/json_writer.cpp',
|
||||
- ],
|
||||
- 'jsoncpp_include_dirs': ['<(jsoncpp_root)/include'],
|
||||
- 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'],
|
||||
- },
|
||||
- 'defines': [
|
||||
- '<@(jsoncpp_additional_macros)',
|
||||
+ 'conditions': [
|
||||
+ ['use_libjsoncpp==1', {
|
||||
+ 'type': 'none',
|
||||
+ 'variables': {
|
||||
+ 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'],
|
||||
+ },
|
||||
+ 'all_dependent_settings': {
|
||||
+ 'defines': [
|
||||
+ '<@(jsoncpp_additional_macros)',
|
||||
+ ],
|
||||
+ 'cflags': [
|
||||
+ '<!@(pkg-config --cflags jsoncpp)',
|
||||
+ ],
|
||||
+ 'link_settings': {
|
||||
+ 'libraries': [
|
||||
+ '<!@(pkg-config --libs-only-l jsoncpp)',
|
||||
+ ],
|
||||
+ 'ldflags': [
|
||||
+ '<!@(pkg-config --libs-only-L jsoncpp)',
|
||||
+ ],
|
||||
+ }
|
||||
+ },
|
||||
+ }, {
|
||||
+ 'type': 'static_library',
|
||||
+ 'variables': {
|
||||
+ 'jsoncpp_root': '<(third_party_dir)/jsoncpp',
|
||||
+ 'jsoncpp_srcs': [
|
||||
+ '<(jsoncpp_root)/src/lib_json/json_reader.cpp',
|
||||
+ '<(jsoncpp_root)/src/lib_json/json_value.cpp',
|
||||
+ '<(jsoncpp_root)/src/lib_json/json_writer.cpp',
|
||||
+ ],
|
||||
+ 'jsoncpp_include_dirs': ['<(jsoncpp_root)/include'],
|
||||
+ 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'],
|
||||
+ },
|
||||
+ 'defines': [
|
||||
+ '<@(jsoncpp_additional_macros)',
|
||||
+ ],
|
||||
+ 'sources': [
|
||||
+ '<@(jsoncpp_srcs)',
|
||||
+ 'jsoncpp.h',
|
||||
+ ],
|
||||
+ 'include_dirs': [
|
||||
+ '<@(jsoncpp_include_dirs)',
|
||||
+ ],
|
||||
+ 'all_dependent_settings': {
|
||||
+ 'defines': [
|
||||
+ '<@(jsoncpp_additional_macros)',
|
||||
+ ],
|
||||
+ },
|
||||
+ }],
|
||||
],
|
||||
- 'sources': [
|
||||
- '<@(jsoncpp_srcs)',
|
||||
- 'jsoncpp.h',
|
||||
- ],
|
||||
- 'include_dirs': [
|
||||
- '<@(jsoncpp_include_dirs)',
|
||||
- ],
|
||||
- 'all_dependent_settings': {
|
||||
- 'defines': [
|
||||
- '<@(jsoncpp_additional_macros)',
|
||||
- ],
|
||||
- },
|
||||
},
|
||||
],
|
||||
}
|
||||
--- /src/net/jsoncpp.h
|
||||
+++ /src/net/jsoncpp.h
|
||||
@@ -35,7 +35,7 @@
|
||||
// Mozc basically disables C++ exception.
|
||||
#define JSON_USE_EXCEPTION 0
|
||||
#endif // !JSON_USE_EXCEPTION
|
||||
-#include "third_party/jsoncpp/include/json/json.h"
|
||||
+#include <json/json.h>
|
||||
#define MOZC_JSONCPP_JSON_H_INCLUDED
|
||||
#endif // !MOZC_JSONCPP_JSON_H_INCLUDED
|
||||
|
||||
--- /src/testing/testing.gyp
|
||||
+++ /src/testing/testing.gyp
|
||||
@@ -53,66 +53,101 @@
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'testing',
|
||||
- 'type': 'static_library',
|
||||
- 'variables': {
|
||||
- 'gtest_defines': [
|
||||
- 'GTEST_LANG_CXX11=1',
|
||||
- 'GTEST_HAS_TR1_TUPLE=0', # disable tr1 tuple in favor of C++11 tuple.
|
||||
- ],
|
||||
- 'gtest_dir': '<(third_party_dir)/gtest/googletest',
|
||||
- 'gmock_dir': '<(third_party_dir)/gtest/googlemock',
|
||||
- 'conditions': [
|
||||
- ['_toolset=="target" and target_platform=="Android"', {
|
||||
- 'gtest_defines': [
|
||||
- 'GTEST_HAS_RTTI=0', # Android NDKr7 requires this.
|
||||
- 'GTEST_HAS_CLONE=0',
|
||||
- 'GTEST_HAS_GLOBAL_WSTRING=0',
|
||||
- 'GTEST_HAS_POSIX_RE=0',
|
||||
- 'GTEST_HAS_STD_WSTRING=0',
|
||||
- 'GTEST_OS_LINUX=1',
|
||||
- 'GTEST_OS_LINUX_ANDROID=1',
|
||||
- ],
|
||||
- }],
|
||||
- ],
|
||||
- },
|
||||
- 'sources': [
|
||||
- '<(gmock_dir)/src/gmock-cardinalities.cc',
|
||||
- '<(gmock_dir)/src/gmock-internal-utils.cc',
|
||||
- '<(gmock_dir)/src/gmock-matchers.cc',
|
||||
- '<(gmock_dir)/src/gmock-spec-builders.cc',
|
||||
- '<(gmock_dir)/src/gmock.cc',
|
||||
- '<(gtest_dir)/src/gtest-death-test.cc',
|
||||
- '<(gtest_dir)/src/gtest-filepath.cc',
|
||||
- '<(gtest_dir)/src/gtest-port.cc',
|
||||
- '<(gtest_dir)/src/gtest-printers.cc',
|
||||
- '<(gtest_dir)/src/gtest-test-part.cc',
|
||||
- '<(gtest_dir)/src/gtest-typed-test.cc',
|
||||
- '<(gtest_dir)/src/gtest.cc',
|
||||
- ],
|
||||
- 'include_dirs': [
|
||||
- '<(gmock_dir)',
|
||||
- '<(gmock_dir)/include',
|
||||
- '<(gtest_dir)',
|
||||
- '<(gtest_dir)/include',
|
||||
- ],
|
||||
- 'defines': [
|
||||
- '<@(gtest_defines)',
|
||||
- ],
|
||||
- 'all_dependent_settings': {
|
||||
- 'defines': [
|
||||
- '<@(gtest_defines)',
|
||||
- ],
|
||||
- 'include_dirs': [
|
||||
- '<(gmock_dir)/include',
|
||||
- '<(gtest_dir)/include',
|
||||
- ],
|
||||
- },
|
||||
'conditions': [
|
||||
- ['(_toolset=="target" and compiler_target=="clang") or '
|
||||
- '(_toolset=="host" and compiler_host=="clang")', {
|
||||
- 'cflags': [
|
||||
- '-Wno-missing-field-initializers',
|
||||
- '-Wno-unused-private-field',
|
||||
+ ['use_libgtest==1', {
|
||||
+ 'type': 'none',
|
||||
+ 'variables': {
|
||||
+ 'gtest_defines': [
|
||||
+ 'GTEST_LANG_CXX11=1',
|
||||
+ 'GTEST_HAS_TR1_TUPLE=0', # disable tr1 tuple in favor of C++11 tuple.
|
||||
+ ],
|
||||
+ 'conditions': [
|
||||
+ ['_toolset=="target" and target_platform=="Android"', {
|
||||
+ 'gtest_defines': [
|
||||
+ 'GTEST_HAS_RTTI=0', # Android NDKr7 requires this.
|
||||
+ 'GTEST_HAS_CLONE=0',
|
||||
+ 'GTEST_HAS_GLOBAL_WSTRING=0',
|
||||
+ 'GTEST_HAS_POSIX_RE=0',
|
||||
+ 'GTEST_HAS_STD_WSTRING=0',
|
||||
+ 'GTEST_OS_LINUX=1',
|
||||
+ 'GTEST_OS_LINUX_ANDROID=1',
|
||||
+ ],
|
||||
+ }],
|
||||
+ ],
|
||||
+ },
|
||||
+ 'all_dependent_settings': {
|
||||
+ 'defines': [
|
||||
+ '<@(gtest_defines)',
|
||||
+ ],
|
||||
+ 'link_settings': {
|
||||
+ 'libraries': [
|
||||
+ '-lgmock -lgtest',
|
||||
+ ],
|
||||
+ },
|
||||
+ },
|
||||
+ }, {
|
||||
+ 'type': 'static_library',
|
||||
+ 'variables': {
|
||||
+ 'gtest_defines': [
|
||||
+ 'GTEST_LANG_CXX11=1',
|
||||
+ 'GTEST_HAS_TR1_TUPLE=0', # disable tr1 tuple in favor of C++11 tuple.
|
||||
+ ],
|
||||
+ 'gtest_dir': '<(third_party_dir)/gtest/googletest',
|
||||
+ 'gmock_dir': '<(third_party_dir)/gtest/googlemock',
|
||||
+ 'conditions': [
|
||||
+ ['_toolset=="target" and target_platform=="Android"', {
|
||||
+ 'gtest_defines': [
|
||||
+ 'GTEST_HAS_RTTI=0', # Android NDKr7 requires this.
|
||||
+ 'GTEST_HAS_CLONE=0',
|
||||
+ 'GTEST_HAS_GLOBAL_WSTRING=0',
|
||||
+ 'GTEST_HAS_POSIX_RE=0',
|
||||
+ 'GTEST_HAS_STD_WSTRING=0',
|
||||
+ 'GTEST_OS_LINUX=1',
|
||||
+ 'GTEST_OS_LINUX_ANDROID=1',
|
||||
+ ],
|
||||
+ }],
|
||||
+ ],
|
||||
+ },
|
||||
+ 'sources': [
|
||||
+ '<(gmock_dir)/src/gmock-cardinalities.cc',
|
||||
+ '<(gmock_dir)/src/gmock-internal-utils.cc',
|
||||
+ '<(gmock_dir)/src/gmock-matchers.cc',
|
||||
+ '<(gmock_dir)/src/gmock-spec-builders.cc',
|
||||
+ '<(gmock_dir)/src/gmock.cc',
|
||||
+ '<(gtest_dir)/src/gtest-death-test.cc',
|
||||
+ '<(gtest_dir)/src/gtest-filepath.cc',
|
||||
+ '<(gtest_dir)/src/gtest-port.cc',
|
||||
+ '<(gtest_dir)/src/gtest-printers.cc',
|
||||
+ '<(gtest_dir)/src/gtest-test-part.cc',
|
||||
+ '<(gtest_dir)/src/gtest-typed-test.cc',
|
||||
+ '<(gtest_dir)/src/gtest.cc',
|
||||
+ ],
|
||||
+ 'include_dirs': [
|
||||
+ '<(gmock_dir)',
|
||||
+ '<(gmock_dir)/include',
|
||||
+ '<(gtest_dir)',
|
||||
+ '<(gtest_dir)/include',
|
||||
+ ],
|
||||
+ 'defines': [
|
||||
+ '<@(gtest_defines)',
|
||||
+ ],
|
||||
+ 'all_dependent_settings': {
|
||||
+ 'defines': [
|
||||
+ '<@(gtest_defines)',
|
||||
+ ],
|
||||
+ 'include_dirs': [
|
||||
+ '<(gmock_dir)/include',
|
||||
+ '<(gtest_dir)/include',
|
||||
+ ],
|
||||
+ },
|
||||
+ 'conditions': [
|
||||
+ ['(_toolset=="target" and compiler_target=="clang") or '
|
||||
+ '(_toolset=="host" and compiler_host=="clang")', {
|
||||
+ 'cflags': [
|
||||
+ '-Wno-missing-field-initializers',
|
||||
+ '-Wno-unused-private-field',
|
||||
+ ],
|
||||
+ }],
|
||||
],
|
||||
}],
|
||||
],
|
@ -1,40 +0,0 @@
|
||||
https://github.com/BYVoid/OpenCC/issues/322
|
||||
|
||||
--- /data/CMakeLists.txt
|
||||
+++ /data/CMakeLists.txt
|
||||
@@ -116,6 +116,19 @@
|
||||
)
|
||||
endforeach(DICT)
|
||||
|
||||
+add_custom_target(
|
||||
+ copy_libopencc_to_dir_of_opencc_dict
|
||||
+ COMMENT
|
||||
+ "Copying libopencc to directory of opencc_dict"
|
||||
+ COMMAND
|
||||
+ ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:libopencc>" "$<TARGET_FILE_DIR:${OPENCC_DICT_BIN}>"
|
||||
+)
|
||||
+if (WIN32)
|
||||
+ set(DICT_WIN32_DEPENDS copy_libopencc_to_dir_of_opencc_dict)
|
||||
+else()
|
||||
+ set(DICT_WIN32_DEPENDS)
|
||||
+endif()
|
||||
+
|
||||
foreach(DICT ${DICTS})
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
@@ -123,14 +136,13 @@
|
||||
COMMENT
|
||||
"Building ${DICT}.ocd2"
|
||||
COMMAND
|
||||
- ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:libopencc>" "$<TARGET_FILE_DIR:${OPENCC_DICT_BIN}>"
|
||||
- COMMAND
|
||||
${OPENCC_DICT_BIN}
|
||||
--input ${DICT_${DICT}_INPUT}
|
||||
--output ${DICT}.ocd2
|
||||
--from text
|
||||
--to ocd2
|
||||
DEPENDS
|
||||
+ ${DICT_WIN32_DEPENDS}
|
||||
${OPENCC_DICT_BIN}
|
||||
${DICT_${DICT}_INPUT}
|
||||
)
|
@ -1,94 +0,0 @@
|
||||
https://github.com/BYVoid/OpenCC/issues/547
|
||||
|
||||
--- /CMakeLists.txt
|
||||
+++ /CMakeLists.txt
|
||||
@@ -28,7 +28,12 @@
|
||||
option(ENABLE_GTEST "Build all tests." OFF)
|
||||
option(ENABLE_BENCHMARK "Build benchmark tests." OFF)
|
||||
option(ENABLE_DARTS "Build DartsDict (ocd format)." ON)
|
||||
-option(BUILD_BUNDLED_LIBMARISA "" ON)
|
||||
+option(USE_SYSTEM_DARTS "Use system version of Darts" OFF)
|
||||
+option(USE_SYSTEM_GOOGLE_BENCHMARK "Use system version of Google Benchmark" OFF)
|
||||
+option(USE_SYSTEM_GTEST "Use system version of GoogleTest" OFF)
|
||||
+option(USE_SYSTEM_MARISA "Use system version of Marisa" OFF)
|
||||
+option(USE_SYSTEM_RAPIDJSON "Use system version of RapidJSON" OFF)
|
||||
+option(USE_SYSTEM_TCLAP "Use system version of TCLAP" OFF)
|
||||
|
||||
######## Package information
|
||||
set (PACKAGE_URL https://github.com/BYVoid/Opencc)
|
||||
@@ -172,7 +177,7 @@
|
||||
|
||||
######## Dependencies
|
||||
|
||||
-if(BUILD_BUNDLED_LIBMARISA)
|
||||
+if(NOT USE_SYSTEM_MARISA)
|
||||
message(STATUS "Use bundled marisa library.")
|
||||
add_subdirectory(deps/marisa-0.2.5)
|
||||
else()
|
||||
@@ -194,12 +199,16 @@
|
||||
######## Testing
|
||||
|
||||
if (ENABLE_GTEST)
|
||||
- add_subdirectory(deps/gtest-1.11.0)
|
||||
+ if(NOT USE_SYSTEM_GTEST)
|
||||
+ add_subdirectory(deps/gtest-1.11.0)
|
||||
+ endif()
|
||||
enable_testing()
|
||||
endif()
|
||||
|
||||
if (ENABLE_BENCHMARK)
|
||||
set(BENCHMARK_ENABLE_TESTING OFF)
|
||||
- add_subdirectory(deps/google-benchmark)
|
||||
+ if(NOT USE_SYSTEM_GOOGLE_BENCHMARK)
|
||||
+ add_subdirectory(deps/google-benchmark)
|
||||
+ endif()
|
||||
enable_testing()
|
||||
endif()
|
||||
--- /src/CMakeLists.txt
|
||||
+++ /src/CMakeLists.txt
|
||||
@@ -1,7 +1,13 @@
|
||||
include (GenerateExportHeader)
|
||||
-include_directories(../deps/marisa-0.2.5/include)
|
||||
-include_directories(../deps/rapidjson-1.1.0)
|
||||
-include_directories(../deps/tclap-1.2.2)
|
||||
+if(NOT USE_SYSTEM_MARISA)
|
||||
+ include_directories(../deps/marisa-0.2.5/include)
|
||||
+endif()
|
||||
+if(NOT USE_SYSTEM_RAPIDJSON)
|
||||
+ include_directories(../deps/rapidjson-1.1.0)
|
||||
+endif()
|
||||
+if(NOT USE_SYSTEM_TCLAP)
|
||||
+ include_directories(../deps/tclap-1.2.2)
|
||||
+endif()
|
||||
|
||||
# Library
|
||||
|
||||
@@ -72,7 +78,9 @@
|
||||
)
|
||||
|
||||
if (ENABLE_DARTS)
|
||||
- include_directories(../deps/darts-clone)
|
||||
+ if(NOT USE_SYSTEM_DARTS)
|
||||
+ include_directories(../deps/darts-clone)
|
||||
+ endif()
|
||||
set(
|
||||
LIBOPENCC_HEADERS
|
||||
${LIBOPENCC_HEADERS}
|
||||
--- /test/CMakeLists.txt
|
||||
+++ /test/CMakeLists.txt
|
||||
@@ -1,4 +1,3 @@
|
||||
-include_directories(../deps/libdarts/src)
|
||||
include_directories(../src)
|
||||
|
||||
set(CONFIG_TEST
|
||||
@@ -27,7 +26,9 @@
|
||||
)
|
||||
endif()
|
||||
|
||||
- include_directories(../deps/gtest-1.7.0/include)
|
||||
+ if(NOT USE_SYSTEM_GTEST)
|
||||
+ include_directories(../deps/gtest-1.7.0/include)
|
||||
+ endif()
|
||||
set(UNITTESTS
|
||||
CommandLineConvertTest
|
||||
)
|
Binary file not shown.
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
DIST graphlcd-base-2.0.2.tar.bz2 522939 BLAKE2B aa4cb227872602f408bda5c80e0269945ddd985e93d5964da8cc67466edbc4bb14fc9813b7e95715b049c1b51dfe692bb2426a032df55a60d869a41d9869302b SHA512 218d914f0286b5025dc9a8a0c738bc01f5f0218a5d56fb0a3b7cdd4acdd8dfaa7465e6d6e5606f38efc0bcc80c7d1b755b139372288c1910e27c5113aea15359
|
||||
DIST graphlcd-base-2.0.3.tar.bz2 523229 BLAKE2B cfdca5a6a73e8a3858d694aa997037b56471feb20541a328210a106d22c97f57e20f0798411e5a92ca616e5991ec167a8986730b985d0aefcbbb6c6454ab78c2 SHA512 dd0d6a1f1d43405d6ff2e531010f97d47081e3e8e9ccd238adc1084912c99838e80e85b8bd6b37d6462859c3c96229fd83e5ac93fb4068ffe5c30cff3787d138
|
||||
EBUILD graphlcd-base-2.0.2.ebuild 2212 BLAKE2B 79bddeeddfb81351cb3bbd0a4e4b7e33c49e6a8747eeb39e77b0bd10d4f9f3e0247ecad2265d5a80421b930f7999b704fa2f6e028f85439ec80cd9caefe321da SHA512 4b86dfef3a65e2fddea0180cb7488132ecb447eed6fbfd84ee59a1ecdbabd1ae1d5ab5bfc2bf686d59ba669691c5e61052ac36eee7e1af40925125dc5e621916
|
||||
EBUILD graphlcd-base-2.0.3.ebuild 2214 BLAKE2B 803513bc6b81b44c80c42481c66c65e04ececbdff054740488330fcd4564ac0e17c1e19ac0e658c731bd083e6920c1a38e308c3ae9a4e9eb5664cb1d0319bce0 SHA512 41d26e907dc40819d187991e9c5a439acce351090c23e72e9c777f0ac0896fe90973205d5d0a87ec9edef5208080cc786cecc11b0bf468c0d4ba5e16f30f4a45
|
||||
EBUILD graphlcd-base-2.0.3.ebuild 2212 BLAKE2B 05f93ffe573522c9596ecf8af4cb2f95f15f28ad6bb360445ccab7e2af2f1d3822e5b9babf717e2f751ac6455bd1456c9eaaffe71f5af607a14181124a4bf1e6 SHA512 e946a5db1ef0b9a972666db65732d725bdc603beb09400a658737ed4ed4398ae61194b3757ef5b4ed5e9a5ad79dc259fff3cfb525d1cc513ee5b1686475143ed
|
||||
MISC metadata.xml 1010 BLAKE2B edb76fc1024e7dc42a14155d892a126d611cf3157604b1a12590c97e4c3270dfb66f49962b08780c6bc53874f94acb1188cc275221e27b2e83ed3b02c343dbad SHA512 d623de28fc64e351373fbb6005393e6bded18f163ec771d1f6854b87fe022250fb88447c919c6a88379fb23d4fc057a2a752365a7759ce621c5ab8059d471aab
|
||||
|
@ -1,89 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit optfeature toolchain-funcs udev
|
||||
|
||||
DESCRIPTION="Contains the lowlevel lcd drivers for GraphLCD"
|
||||
HOMEPAGE="https://projects.vdr-developer.org/projects/graphlcd-base"
|
||||
SRC_URI="https://projects.vdr-developer.org/git/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
IUSE="fontconfig freetype graphicsmagick imagemagick lcd_devices_ax206dpf lcd_devices_picolcd_256x64 lcd_devices_vnc"
|
||||
REQUIRED_USE="?? ( graphicsmagick imagemagick )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libhid
|
||||
net-libs/libvncserver
|
||||
freetype? ( media-libs/freetype:2= )
|
||||
fontconfig? ( media-libs/fontconfig:1.0= )
|
||||
graphicsmagick? ( media-gfx/graphicsmagick:0/1.3[cxx] )
|
||||
imagemagick? ( <media-gfx/imagemagick-7 )
|
||||
lcd_devices_ax206dpf? ( virtual/libusb:0 )
|
||||
lcd_devices_picolcd_256x64? ( virtual/libusb:0 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
DOCS=( "HISTORY" "README" "TODO" "docs/." )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Change '/usr/local/' to '/usr'
|
||||
# Change '/usr/lib' to '/usr/$(get_libdir)'
|
||||
sed -e "34s:/usr/local:/usr:" -e "37s:/lib:/$(get_libdir):" -i Make.config || die
|
||||
|
||||
# Fix newer GCC version with the Futaba MDM166A lcd driver
|
||||
sed -e "s:0xff7f0004:(int) 0xff7f0004:" -i glcddrivers/futabaMDM166A.c || die
|
||||
|
||||
tc-export CC CXX
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Build optional drivers
|
||||
if use lcd_devices_ax206dpf; then
|
||||
sed -e "78s:#::" -i Make.config || die
|
||||
fi
|
||||
if use lcd_devices_picolcd_256x64; then
|
||||
sed -e "81s:#::" -i Make.config || die
|
||||
fi
|
||||
if ! use lcd_devices_vnc; then
|
||||
sed -e "72s:1:0:" -i Make.config || die
|
||||
fi
|
||||
|
||||
# Build optional features
|
||||
if ! use freetype; then
|
||||
sed -e "59s:HAVE:#HAVE:" -i Make.config || die
|
||||
fi
|
||||
if ! use fontconfig; then
|
||||
sed -e "62s:HAVE:#HAVE:" -i Make.config || die
|
||||
fi
|
||||
if use graphicsmagick; then
|
||||
sed -e "69s:#::" -i Make.config || die
|
||||
fi
|
||||
if use imagemagick; then
|
||||
sed -e "68s:#::" -i Make.config || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" UDEVRULESDIR="/lib/udev/rules.d" install
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
|
||||
optfeature "supporting the logitech g15 keyboard lcd." app-misc/g15daemon
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
DIST tmux-mem-cpu-load-3.4.0.tar.gz 19483 BLAKE2B eeaabcd4447b326dbf77d3e5844971d2b466c93169993d4a16912bc4d0f777b07db1b0c2973dfaef9e0cd5b4f0dfd132043aed20170a1a7856d7a3c1f6a96ba8 SHA512 f963683faa86ff7b20a658787978ce3c4c36c41fabe297e18e4b1483e680d71a3b10c220dbae5c29bc7f7cb65e79839041b53c9aaee75a17bdc78bf0b76e8dc1
|
||||
DIST tmux-mem-cpu-load-3.5.1.tar.gz 23020 BLAKE2B 2bbe2441c0fd687fee4ed2f27b8cea0fdbb0596c36fe8c791be110b880abe5d8c28a14960a9836552cf49b4f92d32a127be9271954853c5310f1628791138f7a SHA512 e08a3ad088021d4f4a3fb671a15cc8468a833501202391a63f57d3b53ea65934dc32869c3b7bbe47bce7d8ff2c9d1d35a5823a70c80d1218392aac82ed96e68f
|
||||
EBUILD tmux-mem-cpu-load-3.4.0.ebuild 587 BLAKE2B 46bc85383bc264bc90fe66ac5cc63e0f8278107537956ea38e7b589c3746ccb86f66d4c34ab4342358eaa39b88b4e1310ef65324c7b7a8bbb6fc2fcefdfd3547 SHA512 176ec93db0ba68004002dcc297b31dd804a13602f08c6967c143633b2ac0640a7749150cc17b95d936e034165f8f67412e5131227b44d52a6a7a89fc52ece5f9
|
||||
EBUILD tmux-mem-cpu-load-3.5.1.ebuild 545 BLAKE2B 316949a74bb2db6c7d9c485a10795369b31aa3387258365d2f2f8be9657a601bfd6986b0a34f87a49741e54e0fb1705f6025254a773a3837f6ed75abc4857beb SHA512 a86af4da3c65fca2c4333e4169442d6b8f639266533d1300f0851761c5dc443cf16963d1802f19ffbb307c803a17f84af0748ec0699e4cfde621be84fef3d0c9
|
||||
EBUILD tmux-mem-cpu-load-3.5.1.ebuild 543 BLAKE2B 76164c9a863654c25ad08875777ac2404eeec72596d85485e5b101b8e79375ff05ed2edfa6aca6aa0ec0fe56201d051973fa08ed446862698be7360ff6987946 SHA512 11ea3b55417f9aeffc3adf5c8b3b3a26bfd210f8166e303cd8eb32505c874024d5bc657a9971d3f3d2d0a1a46bad6719c5a09eeec19a12ec5b845233d3c65508
|
||||
EBUILD tmux-mem-cpu-load-9999.ebuild 545 BLAKE2B 316949a74bb2db6c7d9c485a10795369b31aa3387258365d2f2f8be9657a601bfd6986b0a34f87a49741e54e0fb1705f6025254a773a3837f6ed75abc4857beb SHA512 a86af4da3c65fca2c4333e4169442d6b8f639266533d1300f0851761c5dc443cf16963d1802f19ffbb307c803a17f84af0748ec0699e4cfde621be84fef3d0c9
|
||||
MISC metadata.xml 261 BLAKE2B c72b9ffeda4ffe9423279540d7ea84bb499eec367dfa01288393aada1561ccdf01f08f89d5574d4beb7cd197cb3b123d2602ccce6288bbafe4e6c25a1ffe6e67 SHA512 99c6f01dba5cb14a98d96480e02dc49a3399ba679dc83a11f39d9847e472ff830470b0881f7944aba24c6fd7827a5c19bf8c1001f53627fc3eaf3f8d92840cd8
|
||||
|
Binary file not shown.
@ -0,0 +1,51 @@
|
||||
From 8f328bef497a9e3bc628e4e294c1a70b0c8b0eab Mon Sep 17 00:00:00 2001
|
||||
From: foutrelis <foutrelis@eb2447ed-0c53-47e4-bac8-5bc4a241df78>
|
||||
Date: Wed, 2 Mar 2022 10:28:24 +0000
|
||||
Subject: [PATCH] Fix build with poppler 22.03.0
|
||||
|
||||
diff -uprw a/filters/karbon/pdf/CMakeLists.txt b/filters/karbon/pdf/CMakeLists.txt
|
||||
--- a/filters/karbon/pdf/CMakeLists.txt 2020-05-14 09:51:30.000000000 +0300
|
||||
+++ b/filters/karbon/pdf/CMakeLists.txt 2022-03-02 12:19:08.039939530 +0200
|
||||
@@ -14,6 +14,10 @@ if(Poppler_VERSION VERSION_LESS "0.83.0"
|
||||
add_definitions("-DHAVE_POPPLER_PRE_0_83")
|
||||
endif()
|
||||
|
||||
+if(Poppler_VERSION VERSION_LESS "22.3.0")
|
||||
+ add_definitions("-DHAVE_POPPLER_PRE_22_3")
|
||||
+endif()
|
||||
+
|
||||
set(pdf2svg_PART_SRCS PdfImportDebug.cpp PdfImport.cpp SvgOutputDev.cpp )
|
||||
|
||||
add_library(calligra_filter_pdf2svg MODULE ${pdf2svg_PART_SRCS})
|
||||
diff -uprw a/filters/karbon/pdf/Pdf2OdgImport.cpp b/filters/karbon/pdf/Pdf2OdgImport.cpp
|
||||
--- a/filters/karbon/pdf/Pdf2OdgImport.cpp 2020-05-14 09:51:30.000000000 +0300
|
||||
+++ b/filters/karbon/pdf/Pdf2OdgImport.cpp 2022-03-02 12:20:35.125605950 +0200
|
||||
@@ -86,8 +86,12 @@ KoFilter::ConversionStatus Pdf2OdgImport
|
||||
if (! globalParams)
|
||||
return KoFilter::NotImplemented;
|
||||
|
||||
+#ifdef HAVE_POPPLER_PRE_22_3
|
||||
GooString * fname = new GooString(QFile::encodeName(m_chain->inputFile()).data());
|
||||
PDFDoc * pdfDoc = new PDFDoc(fname, 0, 0, 0);
|
||||
+#else
|
||||
+ PDFDoc * pdfDoc = new PDFDoc(std::make_unique<GooString>(QFile::encodeName(m_chain->inputFile()).data()));
|
||||
+#endif
|
||||
if (! pdfDoc) {
|
||||
#ifdef HAVE_POPPLER_PRE_0_83
|
||||
delete globalParams;
|
||||
diff -uprw a/filters/karbon/pdf/PdfImport.cpp b/filters/karbon/pdf/PdfImport.cpp
|
||||
--- a/filters/karbon/pdf/PdfImport.cpp 2020-05-14 09:51:30.000000000 +0300
|
||||
+++ b/filters/karbon/pdf/PdfImport.cpp 2022-03-02 12:21:46.197510028 +0200
|
||||
@@ -73,8 +73,12 @@ KoFilter::ConversionStatus PdfImport::co
|
||||
if (! globalParams)
|
||||
return KoFilter::NotImplemented;
|
||||
|
||||
+#ifdef HAVE_POPPLER_PRE_22_3
|
||||
GooString * fname = new GooString(QFile::encodeName(m_chain->inputFile()).data());
|
||||
PDFDoc * pdfDoc = new PDFDoc(fname, 0, 0, 0);
|
||||
+#else
|
||||
+ PDFDoc * pdfDoc = new PDFDoc(std::make_unique<GooString>(QFile::encodeName(m_chain->inputFile()).data()));
|
||||
+#endif
|
||||
if (! pdfDoc) {
|
||||
#ifdef HAVE_POPPLER_PRE_0_83
|
||||
delete globalParams;
|
@ -0,0 +1,33 @@
|
||||
From 001ec0e10616a3a55fa7898bb68c983e94b7ce66 Mon Sep 17 00:00:00 2001
|
||||
From: foutrelis <foutrelis@eb2447ed-0c53-47e4-bac8-5bc4a241df78>
|
||||
Date: Wed, 2 Mar 2022 12:58:09 +0000
|
||||
Subject: [PATCH] upgpkg: libreoffice-fresh 7.3.0-7: poppler 22.03.0 rebuild
|
||||
|
||||
diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
|
||||
index ad6320139..e5f6d9c68 100644
|
||||
--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
|
||||
+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
|
||||
@@ -138,6 +138,15 @@ int main(int argc, char **argv)
|
||||
_setmode( _fileno( g_binary_out ), _O_BINARY );
|
||||
#endif
|
||||
|
||||
+#if POPPLER_CHECK_VERSION(22, 3, 0)
|
||||
+ PDFDoc aDoc( std::make_unique<GooString>(pFileName),
|
||||
+ GooString(pOwnerPasswordStr),
|
||||
+ GooString(pUserPasswordStr) );
|
||||
+
|
||||
+ PDFDoc aErrDoc( std::make_unique<GooString>(pErrFileName),
|
||||
+ GooString(pOwnerPasswordStr),
|
||||
+ GooString(pUserPasswordStr) );
|
||||
+#else
|
||||
PDFDoc aDoc( pFileName,
|
||||
pOwnerPasswordStr,
|
||||
pUserPasswordStr );
|
||||
@@ -145,6 +154,7 @@ int main(int argc, char **argv)
|
||||
PDFDoc aErrDoc( pErrFileName,
|
||||
pOwnerPasswordStr,
|
||||
pUserPasswordStr );
|
||||
+#endif
|
||||
|
||||
// Check various permissions for aDoc.
|
||||
PDFDoc &rDoc = aDoc.isOk()? aDoc: aErrDoc;
|
@ -0,0 +1,52 @@
|
||||
From f19410ac3b27e33dd62105746784e61e85b90a1d Mon Sep 17 00:00:00 2001
|
||||
From: Jean Ghali <jghali@libertysurf.fr>
|
||||
Date: Wed, 2 Mar 2022 22:22:53 +0000
|
||||
Subject: [PATCH] #16764: Build break with poppler 22.03.0
|
||||
|
||||
git-svn-id: svn://scribus.net/trunk/Scribus@24982 11d20701-8431-0410-a711-e3c959e3b870
|
||||
---
|
||||
scribus/plugins/import/pdf/importpdf.cpp | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
diff --git a/scribus/plugins/import/pdf/importpdf.cpp b/scribus/plugins/import/pdf/importpdf.cpp
|
||||
index 154e58a3f0..392dcd9e64 100644
|
||||
--- a/scribus/plugins/import/pdf/importpdf.cpp
|
||||
+++ b/scribus/plugins/import/pdf/importpdf.cpp
|
||||
@@ -89,7 +89,11 @@ QImage PdfPlug::readThumbnail(const QString& fName)
|
||||
#endif
|
||||
globalParams->setErrQuiet(gTrue);
|
||||
|
||||
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 3, 0)
|
||||
+ PDFDoc pdfDoc{ std::make_unique<GooString>(fname) };
|
||||
+#else
|
||||
PDFDoc pdfDoc{fname, nullptr, nullptr, nullptr};
|
||||
+#endif
|
||||
if (!pdfDoc.isOk() || pdfDoc.getErrorCode() == errEncrypted)
|
||||
return QImage();
|
||||
|
||||
@@ -342,7 +346,11 @@ bool PdfPlug::convert(const QString& fn)
|
||||
globalParams->setErrQuiet(gTrue);
|
||||
// globalParams->setPrintCommands(gTrue);
|
||||
QList<OptionalContentGroup*> ocgGroups;
|
||||
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 3, 0)
|
||||
+ auto pdfDoc = std::make_unique<PDFDoc>(std::make_unique<GooString>(fname));
|
||||
+#else
|
||||
auto pdfDoc = std::unique_ptr<PDFDoc>(new PDFDoc(fname, nullptr, nullptr, nullptr));
|
||||
+#endif
|
||||
if (pdfDoc)
|
||||
{
|
||||
if (pdfDoc->getErrorCode() == errEncrypted)
|
||||
@@ -361,8 +369,13 @@ bool PdfPlug::convert(const QString& fn)
|
||||
#else
|
||||
auto fname = new GooString(QFile::encodeName(fn).data());
|
||||
#endif
|
||||
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 3, 0)
|
||||
+ std::optional<GooString> userPW(std::in_place, text.toLocal8Bit().data());
|
||||
+ pdfDoc.reset(new PDFDoc(std::make_unique<GooString>(fname), userPW, userPW, nullptr));
|
||||
+#else
|
||||
auto userPW = new GooString(text.toLocal8Bit().data());
|
||||
pdfDoc.reset(new PDFDoc(fname, userPW, userPW, nullptr));
|
||||
+#endif
|
||||
qApp->changeOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
}
|
||||
if ((!pdfDoc) || (pdfDoc->getErrorCode() != errNone))
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
DIST REL2_4_1.tar.gz 277428 BLAKE2B 51319e3b1491e1857e63e63640f2e6d2315ab72a0aabcfe7869456822a294bdb53fd0f4cc9bca0c60bfcf9e0926249acad86f09327c5656735b508851037ccaf SHA512 0d673e1a2b696e2cfbb94d8350bb15c280947f69b6512aa80f8ef7497e30cbd407a01b9a4f8fa9844b4ccb39377a6b2bee390a7887f3050074c2e6a11e6f3e3f
|
||||
EBUILD pglogical-2.4.1.ebuild 768 BLAKE2B 6c72df85c87f322f50d15b07f0d07e75210b0d13d0d9d2d8530d1342427425461fe7964d7c37326e7b62f2cccc8a7c273affc31e4957a6e5196ad8a04c7dcee1 SHA512 b9f587daf0262f9da74136995ff11019c12cd29d5c790f5efd3e1cdec8a04c9ecb19811b49e2a7b3b6f1a61a48bba0316d60fe17236e063e50a8c0eb9f48f4f3
|
||||
MISC metadata.xml 335 BLAKE2B 41964f27ce4a78ae765c897487045d3a9299e13fe764a4ad0b6431332647ca13fbd6fd1a3300f33cd932d465339b2194fb056d48bfa650b14b97645d64b023d7 SHA512 7e5b88b6babe2868eda05a151ab4e9e130caa57cb19fb494256a537df2836c50f31c801f5ec3894cda0a8cb871727c894272464bed108c45f96763ab86c9bc82
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alexxy@gentoo.org</email>
|
||||
<name>Alexey Shvetsov</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">2ndQuadrant/pglogical</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
POSTGRES_COMPAT=( 9.6 {10..14} )
|
||||
|
||||
inherit postgres-multi
|
||||
|
||||
MY_PV=$(ver_rs 1- '_')
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
S="${WORKDIR}/${PN}-REL${MY_PV}"
|
||||
|
||||
DESCRIPTION="Logical replication for PostgreSQL"
|
||||
HOMEPAGE="https://www.2ndquadrant.com/en/resources/pglogical/"
|
||||
SRC_URI="https://github.com/2ndQuadrant/pglogical/archive/REL${MY_PV}.tar.gz"
|
||||
|
||||
LICENSE="POSTGRESQL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${POSTGRES_DEP}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
postgres-multi_foreach emake USE_PGXS=1 || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
postgres-multi_foreach emake DESTDIR="${D}" USE_PGXS=1 install
|
||||
postgres-multi_foreach dobin pglogical_create_subscriber
|
||||
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST vend-1.0.3.tar.gz 4728 BLAKE2B 0e8815aad305d87da728e1a1a8098497bc46dddb422c58f8c8019a50b15f7f7daf76e8c19d1edfd5890aa377c41f4483d3d081ab86168b86e20dc8a2aa90859c SHA512 ea963f1626a389d627add1c44cdc6a672d68870eff038ffabf649f0e62b3c4cf7e21d699647f627e039859dc9ac53bf1eca8d8e8eb8fb852503cadbd24a23f70
|
||||
EBUILD vend-1.0.3.ebuild 440 BLAKE2B 6e3f5ccabadb477df1ee27cb92f5604ad79b2d1aa1a58a4595e3171a4b734e8e918efff60c3d43b366aca634a7d45fd0d6be1016979abb796420eaf7070f1930 SHA512 737d691b031190d2301cf705d3033788a4c71d350c8a9c87e899986fa4f5eeb0bb61f9e6f8215ac672f588692bdcfffe1f3a91b9489b842141f11cc878d73f99
|
||||
EBUILD vend-1.0.3.ebuild 459 BLAKE2B 4654ca93ecf4165bb1f41c82b7147b606ce49c7284c1089e41779e9710667f50fcf07b3bd5ec6744d575d1a23642dae3410786aa2fc5ad9027e47c91558577e1 SHA512 a5ab7c2713e9ddc3258ffb7c78734cc5f69cac0cafe29a7ac33da7b3aea9d7788937a2d71ca71a57bfdd84f15b3df32e096e4b852ba28e9452f10b479c1c71c0
|
||||
MISC metadata.xml 249 BLAKE2B 08603bf9d754b59bae12620988552abc7f76b87a1390d02038789eba034c22412a3593d10f443794a5171ff3905c2b5c822368b2eb9f53a528097b7b6c80ffe9 SHA512 338d72efbd040697be98aad4229b81c9694eb27ecbc39f3a18332f4cc766a46b4a0a92f32612203259bf58f5838d0aff7f0b1abec7766f6cd2394c73f7f0b251
|
||||
|
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
DIST commons-daemon-1.0.15-src.tar.gz 291128 BLAKE2B af874e6a0852c2dc5c84fcbf5e1e443fb880a306b19054263d06e8d83a9b0866a52f2950c457315d80031a58250ec75284fc7839df82b7555b1ff3bd92e67810 SHA512 f20cc8796978fb09b6ecc8d99bb3c8b271b097d74c1f99b286cde213631e7f50a4104f5db2c354f9624ba8b037502d81e327c581b38253b9b216aa2172016e40
|
||||
DIST commons-daemon-1.2.4-src.tar.gz 281929 BLAKE2B 877f1c31024a2f3e4796abdd11059bd636444f5c856b998a39761fb0b221467e986586fef43463a4d01b4d4f7a562f9f8c658b94a124cd356b0a70cc185c0030 SHA512 36e9cb3153ca763bfaaa71575a1584610254f1ce4c0f666ff7bbc628311405430536413525c9c777e4364eea62a247fb084750d837e84a62d9fce92a61909d56
|
||||
EBUILD commons-daemon-1.0.15.ebuild 1232 BLAKE2B 78bc104748e2134d37d137570be7cc16191060ea0c4df790563219de67e085a89e5d4bce0b0b5b6ea30bce39afc57066bae8c56451faf1c265228bd3e998e397 SHA512 05a543c150095c0125c3651632884945439f26d4959ff9dbbc503be461615362f3b9e24208c2b2faef72c73ffac6c848884478e8b7f2b2c8dcb4665196f03c83
|
||||
EBUILD commons-daemon-1.2.4.ebuild 1458 BLAKE2B e6f360ddfe736650f071b87c5221db7ea590c793980558404ea98d648d5f7fe6a3de29085874f8e3265f1b205174cf520b3c1585b36367dfde460142e29401fe SHA512 f43de5d3a579deef5fb26c4f6ab688ac50a49c0abc82ae4bfa1e1074084cf55a7fac4607391beefe976f779bf104339bdad42c7fe2adeb9a315dc2657e80d58e
|
||||
EBUILD commons-daemon-1.2.4.ebuild 1457 BLAKE2B 23a03bb678cbdf4f897f56e4058241bd7e97228fffc152f568dd7f96e889d1cfe032d06be13ed97d74b345f3c6412d18cf1a322d7c8a31cc0581cf86e9dd0338 SHA512 64b4f7eb81eb75719138513dfa8ab2e26623443bf264201bff0b1c4d81ee764ce79e267515e54ba6767650f5818b68cbbd0678d99037042e5941f7c5d652d8f4
|
||||
MISC metadata.xml 530 BLAKE2B 313ae727a7149cfaa5e962b1daa4831e77b5f168d8f8d7f2b1242b8fa36f9d2f0460541ec53b8e81cbfae209e3c5e57f5dc5895e881acb61ce9118110aace98b SHA512 738ded66dfc479b30f4c1b6aae4052a4a2de5bf68aa9001a6a1f8fb29203a17b3fe10e52c7f5d26b1de313a74b3713cd22db259a584875f8f91391437cea53e0
|
||||
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
|
||||
inherit autotools java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Tools to allow Java programs to run as UNIX daemons"
|
||||
SRC_URI="mirror://apache/commons/daemon/source/${P}-src.tar.gz"
|
||||
HOMEPAGE="http://commons.apache.org/daemon/"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
|
||||
CDEPEND="kernel_linux? ( sys-libs/libcap )"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jdk-1.6
|
||||
source? ( app-arch/zip )"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
java_prepare() {
|
||||
cd "${S}/src/native/unix" || die
|
||||
sed -i "s/powerpc/powerpc|powerpc64/g" support/apsupport.m4 || die
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
java-ant-2_src_configure
|
||||
cd "${S}/src/native/unix" || die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
java-pkg-2_src_compile
|
||||
cd "${S}/src/native/unix" || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin src/native/unix/jsvc
|
||||
java-pkg_newjar dist/*.jar
|
||||
|
||||
dodoc README RELEASE-NOTES.txt *.html src/native/unix/CHANGES.txt
|
||||
use doc && java-pkg_dohtml -r dist/docs/*
|
||||
use examples && java-pkg_doexamples src/samples
|
||||
use source && java-pkg_dosrc src/main/java/*
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST conversant-disruptor-1.2.19.tar.gz 171364 BLAKE2B 2ac7a42835f22ae7361f156b9cb9853cea39b757c9869847b9b4c526e3e04e46ae8b7ca90c1c38bd3fa57f6925bfc95767235fb4640e7ecf1e62044973b53932 SHA512 f475507e2ab2e4260ec04b699c42115fa917f3df9dc67bbf944c96441e58fff1ab8ba63beb97dbc77d3b76f65b6b116d84b17a1eb4b40d58dedbc029e81e39ee
|
||||
EBUILD conversant-disruptor-1.2.19.ebuild 1296 BLAKE2B 6f56a008cded516920dce4ef483ae51dd71a7f0ee943e9bbb0e67aee8e149584e895f8a5f32f64a633fc65790ad88394892f23444336888d0ba70fca6f40fb20 SHA512 7bbd3af6d3a6599c3325877828b4db01143b7b1a660ae5b382d4399a97d454048434023787830c7fbd7dffcd1aa1246f2e59cd21553c3ff5a065da5279af1f64
|
||||
EBUILD conversant-disruptor-1.2.19.ebuild 1292 BLAKE2B 83cec59db360ef0071f6f73dbd7ee8e456a790ef779184b3636277589b688746822c2de7bc9c5014eacca135c6b50a4587f2bd679a55265fbd39ae630345446c SHA512 2264cd76056eef7de35c51d2d682a29fcb7c639c61562fc43e2d2e7fb8e9b9069fc6573677e93553faf8c2517e6acb515406fadc8ea64decbe584f332fc9faf1
|
||||
MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6
|
||||
|
@ -1,5 +1,4 @@
|
||||
AUX javacc-4.0-javadoc.patch 420 BLAKE2B 8f26c37e26f8967cf527a6f7f4b6c5396bffb5cde4cf9aad292217d41e614800cac438b92971e0c942f71ace4f551db30bae873e83ecdcf2ee7940153fca50bf SHA512 e20554696a27137b7f9c086f7d8c4854742fa1e14ad84e2157cecebdc65f2fb6726a0eaaff7bf3f1113a6fade51c5825b86641b61b917a4fcdd96663a8830438
|
||||
DIST javacc-5.0src.tar.gz 810123 BLAKE2B 6833e79a33c7ae8b28902d1c372162a2f9e326629f0d4c1936a8c3638d3aa3f6bd5713aca8398ba5f1ff963fe585eb683fcd3009602ee592ba79692c8ba0f3d6 SHA512 91896a0affac1c4fd00a093a731dfd02bda548d1a4d83e1077ed36a67f4f9deab0ce9f2d0212fd4c08ab00065d3029533adbafbc026a22ca071285093bd3bba6
|
||||
EBUILD javacc-5.0-r3.ebuild 1402 BLAKE2B 3357b3e97b8d5cbafb588809e6c1e7faafa54f35ab9f910771e0870b2be425998efa2a7ab5376b0f5f0ff67a8822b2f88cf4e6a41ea0a1b5a02d95972839c169 SHA512 74fdbc40ff51b8302639a242e31dd03320832705d7566524ee27be7039ec7974b94625788f4569b45ded38467c6675085ff2b0db3f239d82554fb4af7dd39ebe
|
||||
EBUILD javacc-5.0-r4.ebuild 1408 BLAKE2B a0a643d9e67f21360b315215d96f88ca0f85c92ba3ca4945a61f30e54beefaf3bf6fbb633e774804607f0db6a779b325410b31f2234a5918a8a3299febd8374c SHA512 b8922b9ea94cc7287442774c01a10dc5c836b6d9b9b0f103ef8cdd006f37fbdd8818ed26274d91ea3af6783e51d40e1509dfe963b77b65ce7c385790c27537a2
|
||||
EBUILD javacc-5.0-r4.ebuild 1406 BLAKE2B a14d39d675a7eec5ae330c6aeabf80b2f9980bcc589470a30dfe17bfa762f09cec0a967eee0a153cd10d276dd440761d14273602e1835d0f6bf12c459f3afb7d SHA512 7c043d24cbc0eea4c96b20bb9944471685256d7f8ba1c95c9d27772cdacb6bf6a9e68d8e16fbba6d92061f97dc1c9aee41b89f881f64558909f564f95ec050a4
|
||||
MISC metadata.xml 233 BLAKE2B 2b385ca77219f08b2874b3a4a91a0c836d3cb45ec44b05babb33d590c56ceb5337ecb93a8450a37f8e6bbf4cfc1455892e8142d22e0a1d527d40361e2dce350b SHA512 1acc975a7dc3344bc63282d652ca00d8245970b58353b4fd00f09a4859db3eaba2dcd85e1537d424b7174e4f9c01c2ffb10ec6d107b5c895c9ca20730666de7f
|
||||
|
@ -1,73 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Java Compiler Compiler - The Java Parser Generator"
|
||||
HOMEPAGE="https://javacc.java.net/"
|
||||
SRC_URI="http://java.net/projects/${PN}/downloads/download/${P}src.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
|
||||
CDEPEND="dev-java/junit:0"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jdk-1.6
|
||||
test? ( dev-java/ant-junit:0 )"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0-javadoc.patch
|
||||
)
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="junit"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm -v lib/junit*/*.jar || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "bin/lib/${PN}.jar"
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dohtml -r www/*
|
||||
java-pkg_dojavadoc doc/api
|
||||
fi
|
||||
|
||||
use examples && java-pkg_doexamples examples
|
||||
use source && java-pkg_dosrc src/*
|
||||
|
||||
echo "JAVACC_HOME=${EPREFIX}/usr/share/javacc/" > "${T}"/22javacc || die
|
||||
doenvd "${T}"/22javacc
|
||||
|
||||
echo "export VERSION=${PV}" > "${T}"/pre || die
|
||||
|
||||
local launcher
|
||||
for launcher in javacc jjdoc jjtree; do
|
||||
java-pkg_dolauncher ${launcher} -pre "${T}"/pre --main ${launcher}
|
||||
done
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
DIST JAVAMAIL-1_6_2.tar.gz 1107140 BLAKE2B c0f84bad014af1146bc2bb7f4f58924edf8f6762c222f979d1fec787e8dc93861691cd95c23eb663924597277607d2ce5058c232ad1e8626ed2d0f1e17c34a98 SHA512 6c07490fabbcf5969a2d8946bd9f38187cd33b864985e8183f15d9e1ba1508e445f2050633d9054f9ad546fede7790e64d31956bf23eb2ff8dae45129bd43534
|
||||
DIST javax-mail-1.6.7.tar.gz 1854297 BLAKE2B 70dac40cdf67c413db3370f9cdf5b9786fcebce4ba12725758bf6120a2b6874e079a5beef08ee1190e30bfe2f14ad21e73ef1710c982e3f658a2f2f11e524f2e SHA512 9e8754839efb43d14ade6189428c4b86f5fc180e2e18b4e121a9463aaa52c34a431dbf05a6264ef8221faf0b09cc08f914ff758cbb3931df97cea1a897c54c08
|
||||
EBUILD javax-mail-1.6.2-r1.ebuild 2066 BLAKE2B a1bee101bc627a3a90e48368eb20662bbedda45d573e045869bb1bd4a9f336dd047c2e5d42c830852776335e75422af6b8048fb68aeea22d131c678a170a1de4 SHA512 2b6265523669dd4d7c5eaf68e67ea2b34a141bc07a44f53f229144ab1d19a9a55c2242f834285594ecf8ce8140797d68238668eb9e12309752177c161280a0ec
|
||||
EBUILD javax-mail-1.6.7.ebuild 2051 BLAKE2B 665e0612fd271172dadcb8edb5b9b33e2e61c6b7eb1b12fb41c7d79dfee933c5fa3a01fea64989f07819523880f09d03ddce2cecdef35eca1bb546f3c2d3cebf SHA512 c9b34da68b53e3a773b7bffce383eeab5e21a6fea31a2dd2ba2b2129df83e0dc4ad459252ace64d7f720db79f13d0332ea4acefa0e3674149e8630289a390210
|
||||
MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6
|
||||
|
@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Skeleton command:
|
||||
# java-ebuilder --generate-ebuild --workdir . --pom mail/pom.xml --download-uri https://github.com/javaee/javamail/archive/refs/tags/JAVAMAIL-1_6_2.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild oracle-javamail-1.6.2.ebuild
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="com.sun.mail:javax.mail:1.6.2"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="JavaMail API"
|
||||
HOMEPAGE="https://javaee.github.io/javamail/"
|
||||
SRC_URI="https://github.com/javaee/javamail/archive/refs/tags/JAVAMAIL-${PV//./_}.tar.gz"
|
||||
|
||||
LICENSE="|| ( CDDL GPL-2-with-classpath-exception )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
|
||||
# Common dependencies
|
||||
# POM: mail/pom.xml
|
||||
# javax.activation:activation:1.1 -> !!!groupId-not-found!!!
|
||||
|
||||
CP_DEPEND="
|
||||
dev-java/jakarta-activation-api:1
|
||||
dev-java/jakarta-activation:2
|
||||
"
|
||||
|
||||
DEPEND="${CP_DEPEND}
|
||||
>=virtual/jdk-1.8:*"
|
||||
|
||||
RDEPEND="${CP_DEPEND}
|
||||
>=virtual/jre-1.8:*"
|
||||
|
||||
DOCS=( ../{LICENSE.txt,README.md} )
|
||||
|
||||
S="${WORKDIR}/javamail-JAVAMAIL-${PV//./_}/mail"
|
||||
|
||||
JAVA_ENCODING="iso-8859-1"
|
||||
|
||||
JAVA_SRC_DIR="src/main/java"
|
||||
JAVA_RESOURCE_DIRS="src/main/resources"
|
||||
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
|
||||
JAVA_TEST_SRC_DIR="src/test/java"
|
||||
JAVA_TEST_RESOURCE_DIRS="src/test/resources"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mv src/main/{resources,java}/javax/mail/Version.java || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pushd src/test/java || die
|
||||
# Selection according to 201,202 pom.xml
|
||||
local JAVA_TEST_RUN_ONLY=$(find * \
|
||||
-name "*TestSuite.java" -o -name "*Test.java" \
|
||||
! -name "MailHandlerTest.java" \
|
||||
! -name "DurationFilterTest.java" \
|
||||
! -name "CompactFormatterTest.java" \
|
||||
! -name "CollectorFormatterTest.java" \
|
||||
! -name "WriteTimeoutSocketTest.java" \
|
||||
)
|
||||
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
|
||||
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
|
||||
popd
|
||||
|
||||
java-pkg-simple_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default # https://bugs.gentoo.org/789582
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST jchart2d-eclipse-project-3.2.2.zip 3203952 BLAKE2B 99f3058184e02b682e288675edd68c7f53f2961a1888d096c7834d011ce279b9cfc8228f801e8fc4d3b20250875c5db59cc945ab46ae62c28b85545082e684ca SHA512 aa369b78aced9f7884d51f5298a6772d00cd4003d970e0bb401b717b4bdd2fdd543cf9a382edf7c9a6d1837cedb483a04aa89aac1e66d6e365655e99c76ee812
|
||||
EBUILD jchart2d-3.2.2-r1.ebuild 1277 BLAKE2B 8e7935c0ae45ce1c550389f414a42c46220e6f429179d134da37a3ada3c6bb8f48ec68274bdae7591ef034921f94963824e443cca51ff2c19cc1cf38740906ae SHA512 7517ca26379c108b84fde30d29e16ed48854c6b74f08390873056bddd5967d28d56c9cd5efc63503558cdad3101e5e09cb96796106ff4fd51539869609915b8d
|
||||
EBUILD jchart2d-3.2.2.ebuild 912 BLAKE2B 1d03ce8959dd57b2d714e8afec81d740054a8b113c1564e80ec37e720c5d1907a9acdb21f9f1cc168a173f42f2e83c813d1485f0ff4aea3838d29f85f606f95e SHA512 abf365afbd13a3f2ccc937ff68926ad9abf0e53deb8c96b24b3dbf0a8c361813e51d4e9b0cc95a0fa145062c36a51b412c0d037b75fcc8442df4250002e1ab49
|
||||
MISC metadata.xml 888 BLAKE2B a0930cd934de146950dba51ca961f8b1679e37062f24fe4ad2c2a375809da6a2489855afd638552652a3aeefd9fd20dca50250ba0022e32372491a191e09e51b SHA512 b88619b0447efbd55015786afa2d2ab02a23f29cb16b6d2b78123bfcb1ca4f500d0124061856d88ce4ffd5773c104e0ae043e1f6826e65e1b8242e9bb3fedaaf
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="A minimalistic realtime charting library for Java"
|
||||
HOMEPAGE="http://jchart2d.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/sources/${PN}-eclipse-project-${PV}.zip"
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="test" # Even the headless tests need a display!?
|
||||
|
||||
CDEPEND="dev-java/jide-oss:0
|
||||
dev-java/xmlgraphics-commons:2"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
${CDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="jide-oss,xmlgraphics-commons-2"
|
||||
JAVA_SRC_DIR="src"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
java_prepare() {
|
||||
rm -rv ext/* || die
|
||||
|
||||
# Ant tries and fails to build these outdated bug
|
||||
# demonstrations. Did Ant's globbing behaviour change?
|
||||
rm -v src/*.java || die
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST joda-convert-2.2.2.tar.gz 65476 BLAKE2B 9ef8e3b172d31f4e3b748ba5aae807b1d344c3b6bedeb0bf0b84b93009171495f271d03cd9f7b29147a256ddd1081b3fc9640c1df6b45425080ce1d44e2c0f37 SHA512 9660491373d5f7d415ab47cec7164922fc8901803e759bbf8cf7d0cc58040c2c8b245271f33d641a563ffb25b8e42f8197e297da7d1fe68a5c50ebb61536f3ae
|
||||
EBUILD joda-convert-2.2.2-r1.ebuild 2002 BLAKE2B 10e26311ea6dcc6f59502165da0c4127e02f93d6cce7768f643308d5207171dab279e92109ca431906a70b74864cd79fa8ad557d5d1a34c3df4a56bc7e71451f SHA512 170bb802d0a259805d5bd2ae98557fb615b16d7ba0884d61fde7b938fe4d886af07ae70572a626c027499f4962b1528b6ac60a0285487a6211d8e732552f2f83
|
||||
EBUILD joda-convert-2.2.2.ebuild 2015 BLAKE2B 539a3f32140a5796cef6e0dd083dcf26965d68662d5a77e7a843dab9007ea1e4f4f58c8c75f9be2a06807286c2259fad6b0dc07a5e211a5c0cd4174452ad92d6 SHA512 667bb9c85af1ef67a9f3bcd3eb738ef488202f4daabbdaba940f44e1f4d4b61392a77a17fbe03095eba111cfa2590efd39e088eab38f4cecc6c56f77cfddff98
|
||||
EBUILD joda-convert-2.2.2-r1.ebuild 2001 BLAKE2B b0f8f4c14595af75f6cb2d55b6a540611070199c41f31d8a92447a0ed04d58f6b879de137d2a4cb18d15ed4afac6af497076b80f8b0087e8b7d6569034c7be5a SHA512 cefbd0b9d04591f08c9a5f69e1e0578f3d4f9761c6a7000854b96fbe52e9506355875e6903d1d161d6ceb7792a227995622b25ca2dfb4eccd47f1f06b2d5504b
|
||||
MISC metadata.xml 390 BLAKE2B 50a8eb1f9935a4b0bc775f4c5f069df312da8aec16f6aeb6fb9c66df41f1af3ad4b3a06697e7a2d660275f6cdb19571b99b6d2a9d7418c7d4d9cb177e7660769 SHA512 da06cf231ded50201b189737b5021486c4ec324f6f7e6eb5df1ed2f1ae67a29bd529d4f108eb904c6820994c960c7c6523d69f70378f5d928286736c4ce78cc0
|
||||
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Skeleton command:
|
||||
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/JodaOrg/joda-convert/archive/refs/tags/v2.2.2.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild joda-convert-2.2.2.ebuild
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="org.joda:joda-convert:2.2.2"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Library to convert Objects to and from String"
|
||||
HOMEPAGE="https://www.joda.org/joda-convert/"
|
||||
SRC_URI="https://github.com/JodaOrg/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
|
||||
|
||||
# Compile dependencies
|
||||
# POM: pom.xml
|
||||
# test? com.google.guava:guava:31.0.1-jre -> !!!suitable-mavenVersion-not-found!!!
|
||||
# test? junit:junit:4.13.2 -> >=dev-java/junit-4.13.2:4
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.8:*
|
||||
test? (
|
||||
dev-java/guava:20
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.8:*
|
||||
"
|
||||
|
||||
DOCS=( {LICENSE,NOTICE,RELEASE-NOTES}.txt README.md )
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
JAVA_SRC_DIR="src/main/java"
|
||||
# JAVA_RESOURCE_DIRS=""
|
||||
|
||||
JAVA_TEST_GENTOO_CLASSPATH="guava-20,junit-4"
|
||||
JAVA_TEST_SRC_DIR="src/test/java"
|
||||
JAVA_TEST_RESOURCE_DIRS="src/test/resources"
|
||||
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
# Upstream: Tests run: 186, Failures: 0, Errors: 0, Skipped: 0
|
||||
# All following: No runnable methods
|
||||
org.joda.convert.test1.Test1Class
|
||||
org.joda.convert.test1.Test1Interface
|
||||
org.joda.convert.test2.Test2Class
|
||||
org.joda.convert.test2.Test2Factory
|
||||
org.joda.convert.test2.Test2Interface
|
||||
org.joda.convert.test3.Test3Class
|
||||
org.joda.convert.test3.Test3Factory
|
||||
org.joda.convert.test3.Test3Interface
|
||||
org.joda.convert.test3.Test3SuperClass
|
||||
org.joda.convert.test4.Test4Class
|
||||
org.joda.convert.test4.Test4Factory
|
||||
org.joda.convert.test4.Test4Interface
|
||||
org.joda.convert.TestRenameHandlerBadInit
|
||||
)
|
||||
|
||||
src_install() {
|
||||
default # https://bugs.gentoo.org/789582
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
AUX jtidy-1.0-build.xml.patch 998 BLAKE2B 7bd86d87699a784a918e102195e097d3b88bed791af9fd5df929b06609831749a65fb9c7d79aa4aaa86d87c6796872ef1fbc077844a3ec7e431970bc3a094d65 SHA512 18b5679c538aee7821456acd44342a03e79dbb4d5b65ec7f7103a4d2b883f3726f346804d6362e7775b7e2826ea0e002663bfc32c0282a431254bf199791cd9d
|
||||
DIST jtidy-1.0.zip 240642 BLAKE2B 96e312f2b938f75124a966ad6ecbae39a6822a0d362e98265226409b6c407cfbd1cf1eac2adac522cb02174159392c25bab3abb18c6dce591a0d398cef367306 SHA512 be73dfd2f65ec53a3c1a9b9014a62011f58f5f337bbd2b3939c5f8f54c225fa7718717bf84348bc07a37411c20b1e82f300ba4fc865d7019ada6b1f8d081440a
|
||||
EBUILD jtidy-1.0-r1.ebuild 1052 BLAKE2B d68128aa11d59ee1ce812887d7e348303949b4cbbc3bd58b60381ba336c37814ac0d508856a9352b761a5d0daf0a5805708def62a90cf28e4ff088026d249df6 SHA512 70865638f0ad42d6f0d433cf0b6dc4e79302c276cadba5e0e0b4f44f2aa2b747a208a2fc48aec29a4b1307b04c9d5c7046df43734eef01147e1b2a9fc3d1622d
|
||||
EBUILD jtidy-1.0.ebuild 1041 BLAKE2B f08794ec51cb9effef5e426632e4096cb3f2f09ab41d9d858623794d849c212a72185593562dad437b5c517b35bc289f2f33d93daa14e67f3d4fc8b02fda6cfc SHA512 cb06626f07e65f7e58dca3e4629a1bfe5b9ac3cb8f720f1659c0f38e3f458d1a220ddcec5787507d5df809a880dba6d6826832ce7d0fa485642f413d03851422
|
||||
EBUILD jtidy-1.0-r1.ebuild 1051 BLAKE2B 7c2dc7e113d109733f3f05d4160edd50155726019c063e249b137b539a2e9a4c5213cdb365f3470384b60e850f1ec923128802ea8b4cbc41379c7b483bf9812f SHA512 ad278e2e648fddea28eaed937ca5d64ab7864b521261f9d267b685b1e2fd08f9ea478d515d89f1a188e884bed9576511f1ce62b4386f2a117fe54ac766853512
|
||||
MISC metadata.xml 312 BLAKE2B 0cefe0ab92f9a89c5728c2d7ceb5079e2942590955ebed76105c11ca6e25064fa5d74ad968bdb922be16ef01348ad9e015e68d501c7da3ee6a807cf3821e5380 SHA512 2f68badf7c7d98f60ca73b9fe7e5b5b12168aaec72605ca780e2478ba49f73f460dc3f8a7b4c6d28e334aac3e3e99d76573c4fb8eb40d92619ccbea845947bdd
|
||||
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
MY_PV="r938"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="Java port of HTML Tidy, an HTML syntax checker and pretty printer"
|
||||
HOMEPAGE="http://jtidy.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}-sources.zip -> ${P}.zip"
|
||||
LICENSE="HTML-Tidy W3C"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
|
||||
CDEPEND="dev-java/ant-core:0"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jdk-1.6
|
||||
source? ( app-arch/zip )"
|
||||
|
||||
JAVA_ANT_ENCODING="UTF-8"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
EANT_GENTOO_CLASSPATH="ant-core"
|
||||
EANT_BUILD_TARGET="jar"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/"${P}-build.xml.patch"
|
||||
)
|
||||
|
||||
java_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "target/${MY_P}.jar"
|
||||
java-pkg_dolauncher "jtidy" --main org.w3c.tidy.Tidy
|
||||
|
||||
use doc && java-pkg_dojavadoc target/javadoc/
|
||||
use source && java-pkg_dosrc src/main/java
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST kafka-1.1.1-src.tgz 6443963 BLAKE2B 721f9efb4bd2a1c605e1750a29a33f9939d346a1f81d380b980631d03a1dffcba2f435a91e9420a5876d2294f62c4e4ef39e951b0d37406c0b924f036947848d SHA512 26aa54fe5a761619fb748e4597dd2e3968a99c32d39312b56a83738df6df5e62052d7f883bf56cec25d1e31315d2ff856375fdc7f97a6029786abfa341769ecc
|
||||
EBUILD kafka-clients-1.1.1.ebuild 741 BLAKE2B 33b9b2809eabc58d6fbcfa336616f1ace7e6e42afc63630413ab8335b3ebeb4a0978aab08baa872a3e7d5a86887f345a8fc673786b67df1ebd52ed0275ca3087 SHA512 60af0eb89080b913b0ae7432bee243c703e13431d634e84f2f365a06482db2d3ff2d235130e77b58c0d44bcd41da0769e6bae3c5c10acc14f947d98aac66da09
|
||||
EBUILD kafka-clients-1.1.1.ebuild 740 BLAKE2B 2f106e1388b02ab33e591281f2504d357e2ad080fd818bc82ff80c3b6c44e70a50260e7d9169fa4a94c43209a2367a5be12693f93180c7f842c2116a031749de SHA512 2c05add6e9527b8e352fe50950f93c90d402c0cf26362e5154051308e4e561dd478ea69b8765658143ea890cf4094db904c124d88cf15339a6cd09ed55a6ad18
|
||||
MISC metadata.xml 236 BLAKE2B 5a64c4404c26415501f50132968e687d4f1b852738cb0e1a5aef8cc4de9e4ea623066f46068fce3d80514ff122d85304e3fd12282c4b1513a4084523ef8bef07 SHA512 1755c2590e59060f697294c5ad125b83f2d50e05a71f7091b7de75953941914cd2db3a893bd6154a2c90fa4aff5e313e75e3e174dbba1edd5c112787da5be253
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue