Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/cgicc/, dev-libs/cgicc/files/
Date: Fri, 30 Sep 2016 21:07:50
Message-Id: 1475269480.5c854a32112756c930aea240450b34676087f474.soap@gentoo
1 commit: 5c854a32112756c930aea240450b34676087f474
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 21:04:15 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 21:04:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c854a32
7
8 dev-libs/cgicc: Version bump to 3.2.16
9
10 Gentoo-bug: 594704
11 * EAPI=6
12 * Add USE=doc for proper generation of documentation
13
14 Package-Manager: portage-2.3.1
15
16 dev-libs/cgicc/Manifest | 1 +
17 dev-libs/cgicc/cgicc-3.2.16.ebuild | 49 ++++++++++++++++++++++
18 .../files/cgicc-3.2.16-fix-doc-building.patch | 34 +++++++++++++++
19 3 files changed, 84 insertions(+)
20
21 diff --git a/dev-libs/cgicc/Manifest b/dev-libs/cgicc/Manifest
22 index b559105..243fd3a 100644
23 --- a/dev-libs/cgicc/Manifest
24 +++ b/dev-libs/cgicc/Manifest
25 @@ -1,2 +1,3 @@
26 DIST cgicc-3.2.10.tar.gz 2385130 SHA256 87680cb303e65bee2816b9f0e3d0a3c3258efc4f908ec3cad620d01f0b597ce0 SHA512 78a62b7af9d8bee1b7bf278a0596151733af2adca8bdf6c7b752cebcffb330a5211cc9190a2e29d053afecca076bddb06ecb510caafd51b51d7d29199b06dc19 WHIRLPOOL 1fd73ce034ebaf3b481f30078ae9995dc9feb0e64dc52f963aeb7322e71d69dd8ffee59c8706a877ea8c986ebd1ce16de375e322c146c0f087e2c6ffcc11c442
27 +DIST cgicc-3.2.16.tar.gz 1409037 SHA256 9dceb36d2da52791ee11f2fb5bb6435c22e69ef50f38073c4329386b883d5aaa SHA512 3334777204f3de57e80f759503db08076fe8e7a12cf779bb50345e7d06c6be4cc612b473bd74eded5debd79684b49c5bb79bcfff1b631a815c7fe9d14960d537 WHIRLPOOL d55900ff650c5f42ec385eb4b20d41b8ee131ecd1ba3e1a27dc21326633281651e5ea4e0e7bde71f11ed2440282e7f1d52bbe9e1cae754f5afa2de358a38bdc5
28 DIST cgicc-3.2.9.tar.gz 2087796 SHA256 7bf392da75787e848ddf04395a5ed08fc472411deaa07cbae2c3edbea8fbeed4 SHA512 bd02750a0ad81a64c017e8ccf6cee0c6801506bdc00ea4b0a5e4ea28e35e453122e3e25b3578cb1cb7b22011d5147b99ed79bf7c4702d4c7ab404096aabca623 WHIRLPOOL 01f0da6ca0c28415ed44ab37f3ea56892d18c1dd57a9724bbc0c86bac20e6954bb29b826c96a72cbe8ea99bddcba12b18f9d21c17e5216a20406d931224b6a07
29
30 diff --git a/dev-libs/cgicc/cgicc-3.2.16.ebuild b/dev-libs/cgicc/cgicc-3.2.16.ebuild
31 new file mode 100644
32 index 00000000..ca2cbc0
33 --- /dev/null
34 +++ b/dev-libs/cgicc/cgicc-3.2.16.ebuild
35 @@ -0,0 +1,49 @@
36 +# Copyright 1999-2016 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +# $Id$
39 +
40 +EAPI=6
41 +
42 +inherit autotools
43 +
44 +DESCRIPTION="A C++ class library for writing CGI applications"
45 +HOMEPAGE="https://www.gnu.org/software/cgicc/"
46 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="LGPL-3 doc? ( FDL-1.2 )"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="doc examples static-libs"
52 +
53 +RDEPEND=""
54 +DEPEND="doc? ( app-doc/doxygen )"
55 +
56 +PATCHES=(
57 + "${FILESDIR}/3.2.10-fix-pkgconfig.patch"
58 + "${FILESDIR}/${PN}-3.2.16-fix-doc-building.patch"
59 +)
60 +
61 +src_prepare() {
62 + default
63 + eautoreconf
64 +}
65 +
66 +src_configure() {
67 + econf \
68 + $(use_enable examples demos) \
69 + $(use_enable doc) \
70 + $(use_enable static-libs static)
71 +}
72 +
73 +src_install() {
74 + default
75 +
76 + # package provides .pc files
77 + find "${D}" -name '*.la' -delete || die
78 +
79 + if use examples; then
80 + docinto examples
81 + dodoc {contrib,demo}/{*.{cpp,h},*.cgi,README}
82 + docompress -x /usr/share/doc/${PF}/examples
83 + fi
84 +}
85
86 diff --git a/dev-libs/cgicc/files/cgicc-3.2.16-fix-doc-building.patch b/dev-libs/cgicc/files/cgicc-3.2.16-fix-doc-building.patch
87 new file mode 100644
88 index 00000000..4430ffa
89 --- /dev/null
90 +++ b/dev-libs/cgicc/files/cgicc-3.2.16-fix-doc-building.patch
91 @@ -0,0 +1,34 @@
92 +Fix build system properly, such that hacking the Makefile.in's
93 +is not required anymore.
94 +
95 +--- a/configure.ac
96 ++++ b/configure.ac
97 +@@ -77,6 +77,13 @@
98 + AC_MSG_RESULT($cgicc_demos)
99 + AM_CONDITIONAL(DEMOS, test "$cgicc_demos" = yes)
100 +
101 ++dnl enable/disable the docs, if specified
102 ++AC_ARG_ENABLE([doc],
103 ++ AS_HELP_STRING([--disable-doc], [Disable building documentation]))
104 ++AC_MSG_CHECKING([whether to build the cgicc docs])
105 ++AC_MSG_RESULT([$enable_doc])
106 ++AM_CONDITIONAL([DOCS], [test "x$enable_doc" != "xno"])
107 ++
108 + if test "$cgicc_demos" = yes; then
109 + AC_CONFIG_FILES(demo/Makefile)
110 + AC_CHECK_FUNCS([gethostbyaddr])
111 +--- a/Makefile.am
112 ++++ b/Makefile.am
113 +@@ -10,7 +10,11 @@
114 +
115 + ACLOCAL_AMFLAGS=
116 +
117 +-SUBDIRS = cgicc doc support $(DEMO)
118 ++SUBDIRS = cgicc support $(DEMO)
119 ++
120 ++if DOCS
121 ++SUBDIRS += doc
122 ++endif
123 +
124 + CLEANFILES = *~
125 +