mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-libs/cgicc: New package.
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
1
dev-libs/cgicc/Manifest
Normal file
1
dev-libs/cgicc/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST cgicc-3.2.19.tar.gz 2456040 BLAKE2B 32c1d8e55a61dad12e489c4170ab7ef593f0e10db9e2eba4491dc0d4cce450414cd54c3f81395c6a132d074f0f8573cec8459168947354399c0b0dc9de7902bb SHA512 c361923cf3ac876bc3fc94dffd040d2be7cd44751d8534f4cfa3545e9f58a8ec35ebcd902a8ce6a19da0efe52db67506d8b02e5cc868188d187ce3092519abdf
|
||||
43
dev-libs/cgicc/cgicc-3.2.19.ebuild
Normal file
43
dev-libs/cgicc/cgicc-3.2.19.ebuild
Normal file
@@ -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
|
||||
}
|
||||
31
dev-libs/cgicc/files/cgicc-3.2.19-optional-doc.patch
Normal file
31
dev-libs/cgicc/files/cgicc-3.2.19-optional-doc.patch
Normal file
@@ -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 = *~
|
||||
16
dev-libs/cgicc/metadata.xml
Normal file
16
dev-libs/cgicc/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user