diff options
Diffstat (limited to 'app-office/gnucash')
-rw-r--r-- | app-office/gnucash/Manifest | 7 | ||||
-rw-r--r-- | app-office/gnucash/files/gnucash-3.7-include-checksymbolexists.patch | 12 | ||||
-rw-r--r-- | app-office/gnucash/gnucash-3.6.ebuild | 31 | ||||
-rw-r--r-- | app-office/gnucash/gnucash-3.7.ebuild | 212 | ||||
-rw-r--r-- | app-office/gnucash/metadata.xml | 4 |
5 files changed, 252 insertions, 14 deletions
diff --git a/app-office/gnucash/Manifest b/app-office/gnucash/Manifest index 6c4937ec577b..d51da85e4e88 100644 --- a/app-office/gnucash/Manifest +++ b/app-office/gnucash/Manifest @@ -1,16 +1,19 @@ AUX gnucash-3.2-no-gui.patch 440 BLAKE2B 223d9527e0f290e73774b39ee25dae2c1740d4ed8b340d5d8cdfde74734ae30ebc391ca4ef8df6b162dd53cfd1b5ae3c7d5cd64446978a86969bb5fcc9ea6440 SHA512 628d38969abd7475f88ed9013d99691768abd11a751205092e04b92183551e0dce2e32f1212f66fde47e83730e1d26addbc47d990478e8a8968f9c9f0bc041bd AUX gnucash-3.4-test-stress-options.scm 14743 BLAKE2B f294001a1e888f72ca1fed616d62bd013d7b281ab1143e61ec61a595c2f0e51cfdfc1481a8a9992254fc430155e542138dfab284696ed7a6e0084bb3c81454f9 SHA512 3c8bc5c489c3de49ad940fb6dc99676d60fa0028f1014d2aaa519e8c6a76ceb7c91e2e97edc8e5e9b5c2f7d8a984f463f78ad3a10f49c4eb844e5d9e657b4030 AUX gnucash-3.4-test-transaction.patch 1157 BLAKE2B 41e516e6cf6f29ea3c41b7dc464c38204b088575d7a9c66a355cf7e3eaaed0cfbfe8b7f30c816795ab84e4102e44475266119564c722ebd8f9401a6d462bec9f SHA512 fb4c578a35d85b12ecdf1a9b818225f410792e84f866573b7de97ce94890ddb22dcbf283baf1d0649a3f68ee83db9fb3aa0784ba9c4cec6b65d133d7e12793bf +AUX gnucash-3.7-include-checksymbolexists.patch 394 BLAKE2B bc87d832f68f227eaf1dac3b351ed955eb4eddf36d1f17485bdd6fb437744662ed6ce0e82323ba46be16faf78182c7f56a70d27ce838978eabe23afc665baf36 SHA512 a53f80fd1f303b792e1974ad8aa3df159aa40cd235c853c21a346c8f9fe3c61782fda94a403061cd1eb9969c3dbbfdcea91fe62bb0d5a689f7f0fb6bdd45e3bc DIST gnucash-3.2.tar.bz2 13383942 BLAKE2B ce4beb9eab290bbc85c4b3bf68b205a8ebb274056bf10ef1721bce48ec18e4df4b488ce885dc767b4f1e951dabcdc2ba702cb5fe239f249ec50c8d2d1d12a434 SHA512 ef74cbf396096a71316e14500a5b4e57670f9e9c0c5d46f3afe051ccbae2e46a5f14edd8dd805dfb61276b934db286d48ae044160699df82689e2718ed2f7573 DIST gnucash-3.3.tar.bz2 13440713 BLAKE2B a308af90d8a8e50eb732d29c7eadac1fb75b63006da5bbaa9044039c43c1c17976c6b6fdb1706a08a527b75b1300df3a8ed469151370097b0308a173a170e41b SHA512 4bf0369ca9b3c91c98a0d916f0befc7e5675a246559a6a72dba6592b64f56f3cbd1885b0711e44e8d9cca290be742812763691ae2f639ea31ec534e52e17b3f9 DIST gnucash-3.4.tar.bz2 13564432 BLAKE2B 478d8e2e4acbd0725ceaf997a1e62ba3875e9d4a003e8a3e69111a9d29118447fb2da8ef3e5dd5274d83a3adef1ee9f4a153cdfd17cabe69864b53bab8c7e813 SHA512 4cebef0ba70e59a82d3b2b7b0b138ddb22e8866dc761e156ff1f15920145d12923719effef21ad4c65ccd62fbd14a1529cf0bfcaab70c5b33d103761d08062e0 DIST gnucash-3.5.tar.bz2 13766397 BLAKE2B b840fa6af719e1d21daabd8e26f7026a12ca9cefe8c0f644a8382b42c34a6dec2dfc67350645437c2f12792518f289f446824a8c99ea83453e69d976c3cd5c9c SHA512 76230d2fe1ba4cc605d0d58976ed3214b10a2549fc7eaa1e327bbf85c861baa082523c70ed088a59bb56deb6af9a7808752fc719eda0df3e9209cec05c9c8d13 DIST gnucash-3.6.tar.bz2 13811045 BLAKE2B aa722755e168b6096a8ad0bb05d3c67be9525d5e9e6fcf076c0b6bdc3188815017c2b1bcb308a6f8a7581315f7d9ab67f85b24486214ebbe7ea5a0428e552ea7 SHA512 3d99235a6171e7189dbb15fed11e7f3acb4f49ef8dc6124b26807e74ce4326ac5ae6e23e693a34947604ecb0253ecbcd80f669803a629eb7d236fd3444dbfe82 +DIST gnucash-3.7.tar.bz2 13896595 BLAKE2B d0f0cc9d407677c8b09eab5c1613a0eec80bc54984aebd10915f2f2247ea30c26104cea57c87dd6e46ade9225c9df20c583da21de15f79d50509e63186b682fe SHA512 41275b8d6abba54e95c00d746a2d50305fb7a0490b5486af1472a5d50d2de5973d1ec4de98dd10991325062e61498de020496b59d8548b5a4de9db9d23dee159 DIST gtest-1.8.0.tar.gz 1281617 BLAKE2B ac052b4d0eb0d8ded03a8c7dff05177818627b8a51f2dbc2c162b2ee2a5d1323539e7d0d02236d9ebb799995e018f0171c2fdaeb4de3bb339548265e50de79e6 SHA512 1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d EBUILD gnucash-3.2-r2.ebuild 3957 BLAKE2B 370393aa80d47a51ded47b3a582385fca4ab3e6e33e7802c56ec86d8cec66cacded0442c39c8cbd6563a9f811065e95bd2a62657645a67c259b9f3f23b380e63 SHA512 17b11b3df4088f4575fcdef67a9b0a3cbf0204b2027124683570d124f41f4009bd87b53337aa4d757447c29a4524fff558a69baecaafe1d18e2a39142f1795da EBUILD gnucash-3.3-r1.ebuild 4083 BLAKE2B 0c0f75dd4b3d476ea03b667b56a48a50a484cc27257208a49d7fc012ef62ea0665d2da69b4dd01e3bfa042644035548779d1eda57f5453b4a64b1b4dfffa764c SHA512 5e6fc01fc09b3cd03f0ac33a82342b5953bb0e39ceedda8e576d61f82d7f2142a4f3288bcd2b73c4520c04b95ea6e6954c6615d4c90c5179509959a50c503968 EBUILD gnucash-3.3.ebuild 4025 BLAKE2B 94b349ed78db812b6267ac108cbc9c0ad12a5f13a1ec6816f0b2ca0eff92afd135ccd19a473fb3f12706e9597589a9069ca6095cc0d53a9fb577b8e416cd28c2 SHA512 e33005c224501bfdce4f82e809978dec9d273de55b8eaf938908c5f2feba68125c3b65805da70835dd5439fa229f13fe101fac737b9b33fd4bf1de6578963e3b EBUILD gnucash-3.4.ebuild 4347 BLAKE2B 746435f6184b90c177adb969ff67e4d26803258cb0970adfb30f7d240d73f40ff37664089d50aa180d0bd75124079fee9d6c13b53648514e5ee66b7b30b0de15 SHA512 1285926767b3ddb372cd5d555d93b543d40abb2bbbd874eedca0ca74930c15335b26db251a9dcbce3a274bcc57912e3c0f98f43b7877b80f3bf6e85d3ac69e4f EBUILD gnucash-3.5.ebuild 4223 BLAKE2B 5f4f025d1b6e2f7a39603202296b1491e54c21e14089061ac5e3034221b6d853f5ae47dd02351206aa4e17f8830d9359c01eeb86ea2e7b8c7d515c4f1029683d SHA512 4c38db2ef50b9083e2284bb61e6eee5b4e2b758f2685ae96d94406e1f48a44ffe439738d14f2f1985ed990c0097c2f7399be76c39ec5ce3ad55d4d07a6094f5b -EBUILD gnucash-3.6.ebuild 4212 BLAKE2B bd83a4d38c258f2046fab05797a9ccceb3e75428bb00ef42b28066645383aea052fe7800b091e05ec8c1da037c03af6655a43afb4955c4f35f50baf83fa1293f SHA512 48877cc1d507ce5fd85594c3cda1a806d8c5acfa4f6479b15b9a719c1cb743196b367fc0a1f4d0fb5e729a021c725578869c0f349c48001aa7421ac741ddfa8f -MISC metadata.xml 877 BLAKE2B 0fcba4a83ba82aa6634bc2e3d71da766f2890340e827ba478157fae994456daaecd12722991626069e04086d670a77f156e378a5b0d7b8ee35717561ca944a03 SHA512 1654790fbffc4ec76fc9520221877ad7eaa8fc774f4a05e9e250e44c0fb989081bafcacb018c8d2f6a4787d1794672a87e09c1687919b544a8f1fb36bb449bdc +EBUILD gnucash-3.6.ebuild 4509 BLAKE2B cd6f6ed454a552a5d7d4c2763cc1552bd5e89fcfaa62bc5ef63443a0dbb42caab4aee4cfcefc010b4c1f668eee619341c5e7906a1765ea36f01dcbb8cc05468d SHA512 9efbc2ec69c62e85bf8f998e64d7290890bdcb2b5c1526eaaec303a30c3d5e9ec441af9edfb918466e5b9d88e4f92d203e3bd696c03f99a17e2c3c5e47f7b732 +EBUILD gnucash-3.7.ebuild 5149 BLAKE2B 7b6de008d03dd6ab29219077586eb868ff8ca8e300fafa33904ff07a60b4c3d3acbd43b151abd7793a63906029858f26d828c83bdb338b46ffaa1a2beef0f602 SHA512 a1adbffa7dca5be588158dbdb3a90926b68c3891a63d7a7680323afdb962c390248c2f41dfc2dc6cac94bb0c5b3f70533ab6450eccfcd1bd48cabb612ce9fa52 +MISC metadata.xml 763 BLAKE2B 7ee35e5a74d4ab310b2108f1c918c10346c91c0518f79741731b9161d4fea53118bd7ede78cf8fabf9e6ad923c7ebed5eb29ad2ab88e9e257f71a186bf2622ba SHA512 cb7805a7f24d2207270f430672d806eb1afcdac5b969d7a534a35e49390042fe854a8838e2e0a2e51c4399292103102917a5b585cf687fecba73c398acdd8c15 diff --git a/app-office/gnucash/files/gnucash-3.7-include-checksymbolexists.patch b/app-office/gnucash/files/gnucash-3.7-include-checksymbolexists.patch new file mode 100644 index 000000000000..c0e1778164cd --- /dev/null +++ b/app-office/gnucash/files/gnucash-3.7-include-checksymbolexists.patch @@ -0,0 +1,12 @@ +Bug: https://bugs.gentoo.org/690270 + +--- a/gnucash/register/register-gnome/CMakeLists.txt ++++ b/gnucash/register/register-gnome/CMakeLists.txt +@@ -1,5 +1,7 @@ + add_subdirectory(test) + ++include(CheckSymbolExists) ++ + #GTK before 3.14 didn't have GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK + check_symbol_exists(GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK gdk/gdktypes.h have_mod_mask) + if (NOT have_mod_mask) diff --git a/app-office/gnucash/gnucash-3.6.ebuild b/app-office/gnucash/gnucash-3.6.ebuild index 9999712e8bfd..ec42d91eaae7 100644 --- a/app-office/gnucash/gnucash-3.6.ebuild +++ b/app-office/gnucash/gnucash-3.6.ebuild @@ -3,23 +3,20 @@ EAPI=6 -# google{test,mock} version -GV="1.8.0" PYTHON_COMPAT=( python3_{4,5,6} ) inherit cmake-utils gnome2-utils python-single-r1 xdg-utils DESCRIPTION="A personal finance manager" HOMEPAGE="http://www.gnucash.org/" -SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2 - https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz" +SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" IUSE="aqbanking chipcard debug doc examples gnome-keyring +gui mysql nls ofx - postgres python quotes -register2 sqlite" + postgres python quotes -register2 sqlite test" REQUIRED_USE=" chipcard? ( aqbanking ) @@ -70,12 +67,12 @@ RDEPEND=" " DEPEND="${RDEPEND} - ~dev-cpp/gtest-${GV} >=sys-devel/gettext-0.19.6 dev-lang/perl dev-perl/XML-Parser sys-devel/libtool virtual/pkgconfig + test? ( >=dev-cpp/gtest-1.8.0 ) " PDEPEND="doc? ( @@ -104,8 +101,6 @@ src_configure() { fi local mycmakeargs=( - -DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock - -DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest # Disable fallback to guile-2.0 -DCMAKE_DISABLE_FIND_PACKAGE_GUILE2=ON -DCOMPILE_GSCHEMAS=OFF @@ -127,6 +122,26 @@ src_test() { "${BUILD_DIR}"/common/test-core/ || die fi + LOCALE_TESTS= + if type locale >/dev/null 2>&1; then + MY_LOCALES="$(locale -a)" + if [[ "${MY_LOCALES}" != *en_US* || + "${MY_LOCALES}" != *en_GB* || + "${MY_LOCALES}" != *fr_FR* ]] ; then + ewarn "Missing one or more of en_US, en_GB, or fr_FR locales." + else + LOCALE_TESTS=true + fi + else + ewarn "'locale' not found." + fi + + if [[ ! ${LOCALE_TESTS} ]]; then + ewarn "Disabling test-qof and test-gnc-numeric." + echo 'set(CTEST_CUSTOM_TESTS_IGNORE test-qof test-gnc-numeric)' \ + > "${BUILD_DIR}"/CTestCustom.cmake || die + fi + cd "${BUILD_DIR}" || die XDG_DATA_HOME="${T}/$(whoami)" emake check } diff --git a/app-office/gnucash/gnucash-3.7.ebuild b/app-office/gnucash/gnucash-3.7.ebuild new file mode 100644 index 000000000000..a78ec12c8fc2 --- /dev/null +++ b/app-office/gnucash/gnucash-3.7.ebuild @@ -0,0 +1,212 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{5,6} ) + +inherit cmake-utils gnome2-utils python-single-r1 xdg-utils + +DESCRIPTION="A personal finance manager" +HOMEPAGE="http://www.gnucash.org/" +SRC_URI="https://github.com/Gnucash/${PN}/releases/download/${PV}/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +IUSE="aqbanking debug doc examples gnome-keyring +gui mysql nls ofx postgres + python quotes -register2 smartcard sqlite test" + +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) + smartcard? ( aqbanking )" + +# libdbi version requirement for sqlite taken from bug #455134 +# +# dev-libs/boost must always be built with nls enabled. +# guile[deprecated] because of SCM_LIST*() use +RDEPEND=" + >=dev-libs/glib-2.46.0:2 + >=dev-libs/libxml2-2.7.0:2 + dev-libs/boost:=[icu,nls] + dev-libs/icu:= + dev-libs/libxslt + >=dev-scheme/guile-2.2.0:12=[deprecated,regex] + >=sys-libs/zlib-1.1.4 + aqbanking? ( + >=net-libs/aqbanking-5[ofx?] + sys-libs/gwenhywfar + smartcard? ( sys-libs/libchipcard ) + ) + gnome-keyring? ( >=app-crypt/libsecret-0.18 ) + gui? ( + gnome-base/dconf + net-libs/webkit-gtk:4= + >=x11-libs/gtk+-3.14.0:3 + aqbanking? ( >=sys-libs/gwenhywfar-4.20.2[gtk] ) + ) + mysql? ( + dev-db/libdbi + dev-db/libdbi-drivers[mysql] + ) + ofx? ( >=dev-libs/libofx-0.9.1 ) + postgres? ( + dev-db/libdbi + dev-db/libdbi-drivers[postgres] + ) + python? ( ${PYTHON_DEPS} ) + quotes? ( + >=dev-perl/Finance-Quote-1.11 + dev-perl/Date-Manip + dev-perl/HTML-TableExtract + ) + sqlite? ( + >=dev-db/libdbi-0.9.0 + >=dev-db/libdbi-drivers-0.9.0[sqlite] + ) +" + +DEPEND="${RDEPEND} + >=sys-devel/gettext-0.19.6 + dev-lang/perl + dev-perl/XML-Parser + sys-devel/libtool + virtual/pkgconfig + test? ( >=dev-cpp/gtest-1.8.0 ) +" + +PDEPEND="doc? ( + ~app-doc/gnucash-docs-${PV} + gnome-extra/yelp +)" + +PATCHES=( + "${FILESDIR}"/${PN}-3.2-no-gui.patch + "${FILESDIR}"/${PN}-3.7-include-checksymbolexists.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_unpack() { + default + cp "${FILESDIR}"/gnucash-3.4-test-stress-options.scm \ + ${PN}-${PV}/${PN}/report/standard-reports/test/test-stress-options.scm \ + || die "Failed copying scm" +} + +src_prepare() { + cmake-utils_src_prepare + xdg_environment_reset + + # Fix tests writing to /tmp + local fixtestfiles=( + "${S}"/gnucash/report/report-system/test/test-commodity-utils.scm + "${S}"/gnucash/report/report-system/test/test-extras.scm + "${S}"/gnucash/report/report-system/test/test-report-html.scm + "${S}"/gnucash/report/report-system/test/test-report-system.scm + "${S}"/libgnucash/backend/xml/test/test-xml-pricedb.cpp + "${S}"/libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp + ) + for x in "${fixtestfiles[@]}"; do + sed -i -e "s|\"/tmp/|\"${T}/|g" "${x}" || die "sed of "${x}" failed" + done +} + +src_configure() { + export GUILE_AUTO_COMPILE=0 + + local sql_on_off="OFF" + if use mysql || use postgres || use sqlite ; then + sql_on_off="ON" + fi + + local mycmakeargs=( + -DCOMPILE_GSCHEMAS=OFF + -DDISABLE_NLS=$(usex !nls) + -DENABLE_REGISTER2=$(usex register2) + -DWITH_AQBANKING=$(usex aqbanking) + -DWITH_OFX=$(usex ofx) + -DWITH_PYTHON=$(usex python) + -DWITH_SQL=${sql_on_off} + -DWITH_GNUCASH=$(usex gui) + ) + + cmake-utils_src_configure +} + +src_test() { + if use python ; then + cp common/test-core/unittest_support.py \ + "${BUILD_DIR}"/common/test-core/ || die + fi + + LOCALE_TESTS= + if type locale >/dev/null 2>&1; then + MY_LOCALES="$(locale -a)" + if [[ "${MY_LOCALES}" != *en_US* || + "${MY_LOCALES}" != *en_GB* || + "${MY_LOCALES}" != *fr_FR* ]] ; then + ewarn "Missing one or more of en_US, en_GB, or fr_FR locales." + else + LOCALE_TESTS=true + fi + else + ewarn "'locale' not found." + fi + + if [[ ! ${LOCALE_TESTS} ]]; then + ewarn "Disabling test-qof and test-gnc-numeric." + echo 'set(CTEST_CUSTOM_TESTS_IGNORE test-qof test-gnc-numeric)' \ + > "${BUILD_DIR}"/CTestCustom.cmake || die + fi + + cd "${BUILD_DIR}" || die + XDG_DATA_HOME="${T}/$(whoami)" emake check +} + +src_install() { + cmake-utils_src_install + + rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die + + if use examples ; then + mv "${ED%/}"/usr/share/doc/gnucash \ + "${ED%/}"/usr/share/doc/${PF}/examples || die + pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die + rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \ + *win32-bin.txt || die + popd > /dev/null || die + docompress -x /usr/share/doc/${PF}/examples/ + else + rm -r "${ED%/}"/usr/share/doc/gnucash || die + fi + + use aqbanking && dodoc doc/README.HBCI + use ofx && dodoc doc/README.OFX +} + +pkg_postinst() { + if use gui ; then + xdg_icon_cache_update + gnome2_schemas_update + fi + xdg_desktop_database_update + xdg_mimeinfo_database_update + + ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!" + ewarn + ewarn "GnuCash 2.7.0 introduced large changes in its file format and database" + ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6." +} + +pkg_postrm() { + if use gui ; then + xdg_icon_cache_update + gnome2_schemas_update + fi + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/app-office/gnucash/metadata.xml b/app-office/gnucash/metadata.xml index 3ce301801507..caf73319f78f 100644 --- a/app-office/gnucash/metadata.xml +++ b/app-office/gnucash/metadata.xml @@ -5,10 +5,6 @@ <email>titanofold@gentoo.org</email> <name>Aaron W. Swenson</name> </maintainer> - <maintainer type="project"> - <email>gnome@gentoo.org</email> - <name>Gentoo GNOME Desktop</name> - </maintainer> <use> <flag name="aqbanking"> Connect to some internet banks via AqBanking |