public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: dev-libs/cgicc/files/, dev-libs/cgicc/
@ 2020-07-06 17:51 Andrew Ammerlaan
  0 siblings, 0 replies; only message in thread
From: Andrew Ammerlaan @ 2020-07-06 17:51 UTC (permalink / raw
  To: gentoo-commits

commit:     4af85f11d5d2fd092893b3bcd5c076066382c6d1
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Mon Jul  6 11:57:49 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Jul  6 11:58:57 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4af85f11

dev-libs/cgicc: New package.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 dev-libs/cgicc/Manifest                            |  1 +
 dev-libs/cgicc/cgicc-3.2.19.ebuild                 | 43 ++++++++++++++++++++++
 .../cgicc/files/cgicc-3.2.19-optional-doc.patch    | 31 ++++++++++++++++
 dev-libs/cgicc/metadata.xml                        | 16 ++++++++
 4 files changed, 91 insertions(+)

diff --git a/dev-libs/cgicc/Manifest b/dev-libs/cgicc/Manifest
new file mode 100644
index 0000000..0c703b5
--- /dev/null
+++ b/dev-libs/cgicc/Manifest
@@ -0,0 +1 @@
+DIST cgicc-3.2.19.tar.gz 2456040 BLAKE2B 32c1d8e55a61dad12e489c4170ab7ef593f0e10db9e2eba4491dc0d4cce450414cd54c3f81395c6a132d074f0f8573cec8459168947354399c0b0dc9de7902bb SHA512 c361923cf3ac876bc3fc94dffd040d2be7cd44751d8534f4cfa3545e9f58a8ec35ebcd902a8ce6a19da0efe52db67506d8b02e5cc868188d187ce3092519abdf

diff --git a/dev-libs/cgicc/cgicc-3.2.19.ebuild b/dev-libs/cgicc/cgicc-3.2.19.ebuild
new file mode 100644
index 0000000..a0ef4f9
--- /dev/null
+++ b/dev-libs/cgicc/cgicc-3.2.19.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="A C++ class library for writing CGI applications"
+HOMEPAGE="https://www.gnu.org/software/cgicc/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3 doc? ( FDL-1.2 )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples static-libs"
+
+RDEPEND=""
+DEPEND="doc? ( app-doc/doxygen )"
+
+PATCHES=( "${FILESDIR}/${PN}-3.2.19-optional-doc.patch" )
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		$(use_enable examples demos) \
+		$(use_enable doc) \
+		$(use_enable static-libs static)
+}
+
+src_install() {
+	default
+
+	find "${D}" -name '*.la' -delete || die
+
+	if use examples; then
+		docinto examples
+		dodoc {contrib,demo}/{*.{cpp,h},*.cgi,README}
+	fi
+}

diff --git a/dev-libs/cgicc/files/cgicc-3.2.19-optional-doc.patch b/dev-libs/cgicc/files/cgicc-3.2.19-optional-doc.patch
new file mode 100644
index 0000000..55e665a
--- /dev/null
+++ b/dev-libs/cgicc/files/cgicc-3.2.19-optional-doc.patch
@@ -0,0 +1,31 @@
+--- a/configure.ac	2020-07-06 13:24:03.635374625 +0200
++++ b/configure.ac	2020-07-06 13:24:20.005166171 +0200
+@@ -77,6 +77,13 @@
+ AC_MSG_RESULT($cgicc_demos)
+ AM_CONDITIONAL(DEMOS, test "$cgicc_demos" = yes)
+
++dnl enable/disable the docs, if specified
++AC_ARG_ENABLE([doc],
++    AS_HELP_STRING([--disable-doc], [Disable building documentation]))
++AC_MSG_CHECKING([whether to build the cgicc docs])
++AC_MSG_RESULT([$enable_doc])
++AM_CONDITIONAL([DOCS], [test "x$enable_doc" != "xno"])
++
+ if test "$cgicc_demos" = yes; then
+   AC_CONFIG_FILES(demo/Makefile)
+   AC_CHECK_FUNCS([gethostbyaddr])
+
+--- a/Makefile.am	2020-07-06 13:24:03.635374625 +0200
++++ b/Makefile.am	2020-07-06 13:27:31.473732051 +0200
+@@ -10,6 +10,10 @@
+
+ ACLOCAL_AMFLAGS=
+
+-SUBDIRS = cgicc doc support $(DEMO)
++SUBDIRS = cgicc support $(DEMO)
++
++if DOCS
++SUBDIRS += doc
++endif
+
+ CLEANFILES = *~

diff --git a/dev-libs/cgicc/metadata.xml b/dev-libs/cgicc/metadata.xml
new file mode 100644
index 0000000..2bc0c88
--- /dev/null
+++ b/dev-libs/cgicc/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>gentoo@tastytea.de</email>
+		<name>Ronny (tastytea) Gutbrod</name>
+	</maintainer>
+	<longdescription lang="en">
+		GNU Cgicc is an ANSI C++ compliant class library that greatly simplifies
+		the creation of CGI applications for the World Wide Web.
+	</longdescription>
+	<upstream>
+		<bugs-to>https://savannah.gnu.org/projects/cgicc/</bugs-to>
+		<doc>https://www.gnu.org/software/cgicc/doc/index.html</doc>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-06 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-06 17:51 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/cgicc/files/, dev-libs/cgicc/ Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox