summaryrefslogtreecommitdiff
path: root/dev-util/synopsis
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/synopsis')
-rw-r--r--dev-util/synopsis/Manifest4
-rw-r--r--dev-util/synopsis/files/synopsis-0.12-gcc45.patch4
-rw-r--r--dev-util/synopsis/files/synopsis-0.13-bdwgc-8.patch25
-rw-r--r--dev-util/synopsis/synopsis-0.13-r1.ebuild54
4 files changed, 84 insertions, 3 deletions
diff --git a/dev-util/synopsis/Manifest b/dev-util/synopsis/Manifest
index b9ee6b2faad0..4ef3e8190370 100644
--- a/dev-util/synopsis/Manifest
+++ b/dev-util/synopsis/Manifest
@@ -1,4 +1,6 @@
-AUX synopsis-0.12-gcc45.patch 482 BLAKE2B 4c35528e0a6265d14e7de30236d59eae363889909862aec09b03696e209863465e3bff5b608e972c060fbe3844efd904ad6d599261d713cf651c7eee3906e4cc SHA512 bccb0c6975d0763bf29f08de86349cb41aee1843e08201c7cd22455daddda1c9d419ab39ae67348d0566ae681fc1f90f777d3756b10e0fad2f72eee5fc213b9c
+AUX synopsis-0.12-gcc45.patch 486 BLAKE2B 21ecd520052a4836f1ba4a3e2f3df0847c682d052c42a3b5f058cc7f6bbe6fd3fe4e0dc7b6fce6c415edfd07eaba7d6c694688e974ad8cbfaf2a1585ae716819 SHA512 4afc8a63a358980e4f73f6ff8dd68a17bec42ba72938dccfd46228f2667451a7055a91ddcaeeb70e350d2f806ec868b5b011c9893ab681be61051efc02c244c8
+AUX synopsis-0.13-bdwgc-8.patch 1017 BLAKE2B cec979a65c7bbe3aaf4265968df024da9dff107d54b3a8d919d3f392d4f39b346c5e01fa1a943a67d6e734eba76767176ec3e91917a32d983090cc6810b78318 SHA512 9ad8eff9ee3a2a9e7cfeb31ab17aa46cf395be03a38a950fe4a70c8ac1b88852aa0c9dfb2fb5b933ca07a5775230e89ea51e8a32d7019b8f2021c1d117893bea
DIST synopsis-0.13.tar.gz 10691494 BLAKE2B 8a41505eb77a64bb94b5794fc2a1161e8a23f2e2b3bbf9cebd8216e026a20a56f5036585cc9fc457a6bde980e891861dbf2beffa40ad55ead4e31aa2bb7379e7 SHA512 cdd84f4b9fc8a7b0edaa017e7a332bba06cd4fc804c49b84b1558a84e814e3a8a4b8c5801a8eaf149e6475dbacbb879f04ade57e31d660dfac5e0c83887abd54
+EBUILD synopsis-0.13-r1.ebuild 1296 BLAKE2B 9abf96d35c4759a542c2d5e2e58962b4b0c45d959ace5930a332cc19fbf02d7021877268630c9f7487f0f4432db16b1b66a138fc7cf3d54a9e4755b5f7afadc6 SHA512 41aba6a7e8028c44857889b3aad62caebcb0c8316d0d7682d9da1832adfff4c23dc6fe97c98064a81340ffcdf947c092d0f3633928baff5d844f07486c4e0a84
EBUILD synopsis-0.13.ebuild 1229 BLAKE2B f0dd4e7fa463025d12eddd818c3b128793a2587a00010cf2b013f91dd099eaa32b3f7814fb320e9a8cf23b5fb56a2fb9adb2a6c8d52cf71282cd9a0036141ef6 SHA512 a3467acc11f424adf0e140b1541ece9c0088a507795eb65f84b2e50f2825f211c93ae12c2f73d9d890f289f635ac25bdd86fc8770ae4d37331a8667bb4a601e6
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/dev-util/synopsis/files/synopsis-0.12-gcc45.patch b/dev-util/synopsis/files/synopsis-0.12-gcc45.patch
index ff0fe2be5da8..c0dbdd91dc1d 100644
--- a/dev-util/synopsis/files/synopsis-0.12-gcc45.patch
+++ b/dev-util/synopsis/files/synopsis-0.12-gcc45.patch
@@ -4,8 +4,8 @@ http://bugs.gentoo.org/show_bug.cgi?id=318429
Patch written by Kacper Kowalik <xarthisius.kk@gmail.com>
---- Synopsis/Parsers/Cxx/Types.cc
-+++ Synopsis/Parsers/Cxx/Types.cc
+--- a/Synopsis/Parsers/Cxx/Types.cc
++++ b/Synopsis/Parsers/Cxx/Types.cc
@@ -169,7 +169,7 @@
// Class Types::FuncPtr
//
diff --git a/dev-util/synopsis/files/synopsis-0.13-bdwgc-8.patch b/dev-util/synopsis/files/synopsis-0.13-bdwgc-8.patch
new file mode 100644
index 000000000000..5d10b65c60f9
--- /dev/null
+++ b/dev-util/synopsis/files/synopsis-0.13-bdwgc-8.patch
@@ -0,0 +1,25 @@
+https://bugs.gentoo.org/679642
+https://github.com/ivmai/bdwgc/issues/268
+
+--- a/src/configure
++++ b/src/configure
+@@ -4046,7 +4046,7 @@ if test "$ac_cv_enable_gc" == "yes"; then
+ GC_BRIDGE=$srcdir/Synopsis/PTree/GC-enabled.tmpl
+ if test -n "$ac_cv_with_gc_prefix"; then
+ CPPFLAGS="$CPPFLAGS -I$ac_cv_with_gc_prefix/include/gc"
+- LIBS="-L$ac_cv_with_gc_prefix/lib -lgc $LIBS"
++ LIBS="-L$ac_cv_with_gc_prefix/lib -lgc -lgccpp $LIBS"
+ else
+ GC_CPP="-I\${includedir}/Synopsis/gc/include"
+ GC_LIB="Synopsis/gc/.libs/libgc.a"
+--- a/src/configure.ac
++++ b/src/configure.ac
+@@ -72,7 +72,7 @@ if test "$ac_cv_enable_gc" == "yes"; then
+ GC_BRIDGE=$srcdir/Synopsis/PTree/GC-enabled.tmpl
+ if test -n "$ac_cv_with_gc_prefix"; then
+ CPPFLAGS="$CPPFLAGS -I$ac_cv_with_gc_prefix/include/gc"
+- LIBS="-L$ac_cv_with_gc_prefix/lib -lgc $LIBS"
++ LIBS="-L$ac_cv_with_gc_prefix/lib -lgc -lgccpp $LIBS"
+ else
+ GC_CPP="-I\${includedir}/Synopsis/gc/include"
+ GC_LIB="Synopsis/gc/.libs/libgc.a"
diff --git a/dev-util/synopsis/synopsis-0.13-r1.ebuild b/dev-util/synopsis/synopsis-0.13-r1.ebuild
new file mode 100644
index 000000000000..9d2b76695a59
--- /dev/null
+++ b/dev-util/synopsis/synopsis-0.13-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+DISTUTILS_IN_SOURCE_BUILD=1
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 multilib toolchain-funcs
+
+DESCRIPTION="General source code documentation tool"
+HOMEPAGE="http://synopsis.fresco.org/index.html"
+SRC_URI="http://synopsis.fresco.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+COMMON_DEPEND="dev-libs/boehm-gc[cxx]"
+RDEPEND="${COMMON_DEPEND}
+ media-gfx/graphviz"
+DEPEND="${COMMON_DEPEND}
+ ${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.12-gcc45.patch
+ "${FILESDIR}"/${PN}-0.13-bdwgc-8.patch
+)
+
+pkg_setup() {
+ tc-export CC CXX
+}
+
+python_prepare() {
+ rm -r src/Synopsis/gc || die "failed to remove bundled lib"
+
+ # the distutils script passes its options to a number of
+ # autoconf scripts, to not all of which these options are
+ # relevant. adding this option disables these useless warnings.
+ sed -e "/self.announce(command)/i\ command += ' --disable-option-checking'" \
+ -i Synopsis/dist/command/config.py || die
+}
+
+python_configure() {
+ local mydistutilsargs=(
+ config
+ --libdir="${EPREFIX}"/usr/$(get_libdir)
+ --with-gc-prefix="${EPREFIX}"/usr
+ )
+ esetup.py
+}