From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/xmlrpc-c/Manifest | 9 ++ .../files/xmlrpc-c-1.32.05-Wimplicit.patch | 20 +++++ .../files/xmlrpc-c-1.39.11-cplusplus.patch | 14 +++ dev-libs/xmlrpc-c/metadata.xml | 17 ++++ dev-libs/xmlrpc-c/xmlrpc-c-1.32.05-r1.ebuild | 99 ++++++++++++++++++++++ dev-libs/xmlrpc-c/xmlrpc-c-1.39.11-r1.ebuild | 70 +++++++++++++++ 6 files changed, 229 insertions(+) create mode 100644 dev-libs/xmlrpc-c/Manifest create mode 100644 dev-libs/xmlrpc-c/files/xmlrpc-c-1.32.05-Wimplicit.patch create mode 100644 dev-libs/xmlrpc-c/files/xmlrpc-c-1.39.11-cplusplus.patch create mode 100644 dev-libs/xmlrpc-c/metadata.xml create mode 100644 dev-libs/xmlrpc-c/xmlrpc-c-1.32.05-r1.ebuild create mode 100644 dev-libs/xmlrpc-c/xmlrpc-c-1.39.11-r1.ebuild (limited to 'dev-libs/xmlrpc-c') diff --git a/dev-libs/xmlrpc-c/Manifest b/dev-libs/xmlrpc-c/Manifest new file mode 100644 index 000000000000..aa08b3c33330 --- /dev/null +++ b/dev-libs/xmlrpc-c/Manifest @@ -0,0 +1,9 @@ +AUX xmlrpc-c-1.32.05-Wimplicit.patch 593 SHA256 9a39a6d1c01c8fe1dc2d6673d35da13643d805eb8d717112735b7a7c75768d44 SHA512 e39c694f8fed9f2b55592043cdc6776260980e0e6751362c15026f82c2a777e37183f6a7d42e7e2ed36b4fada5124f3fd3c7d6104dc447ef494f4bf82e5dfe04 WHIRLPOOL 6c239ad331ce221dedc59b54ac96b96490d00f74e7e39d64f380490fafd508976a22fbab2afc69a536e1e5f7e2532cea75aab28c26a546e701bd621bc3a6688f +AUX xmlrpc-c-1.39.11-cplusplus.patch 374 SHA256 2a9bbfc5033848a7ccdc62bb163f335cac159c06fd3f34ade0f0115019f07319 SHA512 b5182181f7c0ffa150c977b6e206c2fbfdcd979369dbf55b2c4197378edb7136629df02bb7cc5f89df522451fef3c04a7b901dc3f34bc895f55020f8d5e03ef6 WHIRLPOOL aca37350848885406ea89be254c030dc096847aac31c0118e6a5ce12f3718b1050f2d66c80fc332eb2dfa3364f0d3de2a7b7036daf7b8c453d3f120b1823bd9a +DIST xmlrpc-c-1.32.05.tar.gz 769040 SHA256 cefd25dcb90556c90358cb44013a644f1aeafd37d2e18be37e66a3355b5ae0d2 SHA512 40813ad97010684e346ce4f286d9d7314547572f8681cf99d4c3c36cb7aa38b1cb72b84d63ab46e44282dc2bd95b85dbb022e3039700caa939469c6f7bf08d1f WHIRLPOOL 1e6ebbc1b3caa78e1e22210d81a61b74d71f61a33d1ea97f96ef250a5277d3cbe6d532d286bed8bb57e1ba4ccb54fd38bdf51f8d3bdbba00225bb5678de17292 +DIST xmlrpc-c-1.39.11.tgz 815463 SHA256 2e56cdcdd5c5fa564bcdc7a56bca108a88f5b78b34ccc85558366efabdc8b8e8 SHA512 13e7ddf5264436671437c0bcd698380baca35c4469f592edf79cb4cafda254fe8207ecb992ee728ed20ec70457a20bd0cf8e180ce5cf0561a38a21f1e588f584 WHIRLPOOL 40a85e66777caf3be49c00c62a4b577928255687fef7c67482c55c39bb56b4a7b0ba32b2e982813bed842ad689d2d95acbeb9aa9ddc77808e80cb1b31569ffb7 +EBUILD xmlrpc-c-1.32.05-r1.ebuild 2928 SHA256 c3d03d393e2d0451b941d67e06710c3fc95456c75dbe3bae58e53b1f21e9ce07 SHA512 02e123da66dcc7151655389ac606f6063467d04dab0e3040d8567d08a865b248d31efc9c187ae813ea4d29fb984ccefba526c9928c3045bcdf795993c79d6f1c WHIRLPOOL 5d04d80a69207fbfe8a1e0f982c69af8b25d6fa9dc36453c1f1103eb83ee5fbe24b141ece858559ca771b3c1cfa65e624fa36286a831f190e55a1f1bf6f1c230 +EBUILD xmlrpc-c-1.39.11-r1.ebuild 1906 SHA256 2f9db0fc665cd6a304acbf55f063a2acbf9d6a3867f0058a7db6b6864e9f3329 SHA512 4c6f3c4c8285c81eb2ac17a0af73d6685d127e6bcb4c44f43f121f7e31f3d8a239ca38952825324b8c4376feb0168d81b81d8fea401a95e77cf0840598ca5e13 WHIRLPOOL 9fea09ba7163ba9a437eaed86e80ff91a299d98405dcef2d9a35cb488ae39479fa31166244b8056315a156b0ccb9f4d1148d6b4b24df2adb5a4e67440ddaccf8 +MISC ChangeLog 3267 SHA256 3ff292174e55dbd5414829e4a00221a6c7a863ad17ae599d2b97a50d56873d21 SHA512 85001127af60a7cf8865f4bba5989cfd090e6b43ebccd0bbe7c05e611b1a87fab56568ded68c985460310bfe03d4fa64b49fb664f99550b44ebd00824397bbbb WHIRLPOOL bc18a47772ed82dec8d1dc83d5381116ae9ef3065b06464761e3ae90eb3536bfcf6ecbc79bf808525a7e068f39f8cf011b4bf6485596dd3cbcd368c48032764a +MISC ChangeLog-2015 23617 SHA256 210b1994239da4bad91a81b25b6fb675a64d3034641082320ad82942bdd0d164 SHA512 48a88158663e07bbf461bd284e886e21cf4b55637850782c6a326884661f854b7a883b8c2528859bed62e2627f1cf393bc57287cf66df854254fe06a5ed5e941 WHIRLPOOL a532f57b9f26c0a0614532a0d70a03fa2a012dba59129431571a0f6c702795893cb77524ef23a3cf7ed028686174d3978b75b71012f6bb51f54263ad9da0f324 +MISC metadata.xml 669 SHA256 132a993bbe9d8b32e0a2ded473b4f1860f4cefa250d44ec9445b0e54b43d24dc SHA512 6009e48c681fd9a98054a37eb9ee78d87eff527d617094b55d6f3af6fe59f81328a03ccec47ab7fc1b4e54bdec50629b76b522e8943e2be43c1adf57e74caecb WHIRLPOOL 0b5b14eaff6576436a28647dc896cafcd75159e0be3e026323547f4b8b3cd5bf6177829483986fd89183fd55866e3da22cacf104a30c7fe8bba9afa44352a687 diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.32.05-Wimplicit.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.32.05-Wimplicit.patch new file mode 100644 index 000000000000..affa917f7427 --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.32.05-Wimplicit.patch @@ -0,0 +1,20 @@ +--- a/common.mk ++++ b/common.mk +@@ -17,7 +17,7 @@ + # fully made. + .DELETE_ON_ERROR: + +-GCC_WARNINGS = -Wall -W -Wno-uninitialized -Wundef -Wimplicit \ ++GCC_WARNINGS = -Wall -W -Wno-uninitialized -Wundef \ + -Wno-unknown-pragmas + # We need -Wwrite-strings after we fix all the missing consts + # +@@ -27,7 +27,7 @@ + # on -Wuninitialized for all the others. + + GCC_C_WARNINGS = $(GCC_WARNINGS) \ +- -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes ++ -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wimplicit + + GCC_CXX_WARNINGS = $(GCC_WARNINGS) -Wsynth + diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.39.11-cplusplus.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.39.11-cplusplus.patch new file mode 100644 index 000000000000..64de06b3bb28 --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.39.11-cplusplus.patch @@ -0,0 +1,14 @@ +--- a/lib/Makefile 2015-12-30 07:22:14.000000000 +0300 ++++ b/lib/Makefile 2017-01-10 15:17:39.410000000 +0300 +@@ -9,7 +9,10 @@ + + # Build up SUBDIRS: + SUBDIRS = +-SUBDIRS += util libutil libutil++ ++SUBDIRS += util libutil ++ifeq ($(ENABLE_CPLUSPLUS),yes) ++ SUBDIRS += libutil++ ++endif + ifeq ($(ENABLE_ABYSS_SERVER),yes) + SUBDIRS += abyss + ifeq ($(ENABLE_CPLUSPLUS),yes) diff --git a/dev-libs/xmlrpc-c/metadata.xml b/dev-libs/xmlrpc-c/metadata.xml new file mode 100644 index 000000000000..3a51b3edd302 --- /dev/null +++ b/dev-libs/xmlrpc-c/metadata.xml @@ -0,0 +1,17 @@ + + + + + pinkbyte@gentoo.org + Sergey Popov + + + Build the Abyss mini web-server. + Use dev-libs/libxml2 to parse XML instead of the internal expat library. + Controls whether to build the Abyss web-server with pthreads or fork 'threading'. + Build the xmlrpc* tools. + + + xmlrpc-c + + diff --git a/dev-libs/xmlrpc-c/xmlrpc-c-1.32.05-r1.ebuild b/dev-libs/xmlrpc-c/xmlrpc-c-1.32.05-r1.ebuild new file mode 100644 index 000000000000..bcda3a805a5f --- /dev/null +++ b/dev-libs/xmlrpc-c/xmlrpc-c-1.32.05-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils multilib + +# Maintainer notes: Take a look at http://xmlrpc-c.sourceforge.net/release.html +# We use "advanced" branch, so for the current release revision take look here: +# http://xmlrpc-c.svn.sourceforge.net/viewvc/xmlrpc-c/advanced/version.mk?view=log +# e.g. for 1.27.05 corresponds following revision 2182 and thus following URL: +# http://xmlrpc-c.svn.sourceforge.net/viewvc/xmlrpc-c/advanced.tar.gz?view=tar&pathrev=2182 +# Note: autogenerated tarball checksum changes every download, thus download it +# manually and distribute on mirrors. +# It's possible to build net-libs/libwww without ssl support, but taking into +# account that libwww is not really well maintained and upstream is dead we +# better use it only in case ssl is required. + +DESCRIPTION="A lightweigt RPC library based on XML and HTTP" +HOMEPAGE="http://xmlrpc-c.sourceforge.net/" +SRC_URI="https://dev.gentoo.org/~maksbotan/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="abyss +cgi +curl +cxx +libxml2 static-libs threads test tools" + +REQUIRED_USE="test? ( static-libs abyss curl cxx ) tools? ( curl )" + +DEPEND=" + sys-libs/ncurses + sys-libs/readline + curl? ( net-misc/curl ) + libxml2? ( dev-libs/libxml2 )" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}/advanced" + +pkg_setup() { + use curl || ewarn "Curl support disabled: No client library will be built" +} + +src_prepare() { + #Bug 214137: We need to filter this. + unset SRCDIR + + # Bug 255440 + export LC_ALL=C + export LANG=C + + epatch "${FILESDIR}"/${PN}-1.32.05-Wimplicit.patch + sed -i \ + -e "/CFLAGS_COMMON/s|-g -O3$||" \ + -e "/CXXFLAGS_COMMON/s|-g$||" \ + "${S}"/common.mk || die + + export LADD=${LDFLAGS} # Respect the user's LDFLAGS. + + use static-libs || { sed \ + -e '/\(^TARGET_STATIC_LIBRARIES =\)/{s:\(^TARGET_STATIC_LIBRARIES =\).*:\1:;P;N;d;}' \ + -i common.mk || die; } +} + +src_configure() { + #Disable libwww support due GBZ #409549 and #320253 + + econf --disable-wininet-client \ + $(use_enable libxml2 libxml2-backend) \ + --disable-libwww-client \ + --without-libwww-ssl \ + $(use_enable threads abyss-threads) \ + $(use_enable cgi cgi-server) \ + $(use_enable abyss abyss-server) \ + $(use_enable cxx cplusplus) \ + $(use_enable curl curl-client) +} + +src_compile() { + emake -r + use tools && emake -rC "${S}"/tools +} + +src_install() { + default_src_install + use tools && emake DESTDIR="${D}" -rC "${S}"/tools install +} + +src_test() { + unset LDFLAGS LADD SRCDIR + cd "${S}"/test/ + einfo "Building general tests" + make || die "Make of general tests failed" + einfo "Running general tests" + ./test || die "General tests failed" + cd "${S}"/test/cpp/ + einfo "Running C++ tests" + ./test || die "C++ tests failed" +} diff --git a/dev-libs/xmlrpc-c/xmlrpc-c-1.39.11-r1.ebuild b/dev-libs/xmlrpc-c/xmlrpc-c-1.39.11-r1.ebuild new file mode 100644 index 000000000000..4647224d4fb0 --- /dev/null +++ b/dev-libs/xmlrpc-c/xmlrpc-c-1.39.11-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# Upstream maintains 3 release channels: http://xmlrpc-c.sourceforge.net/release.html +# 1. Only the "Super Stable" series is released as a tarball +# 2. SVN tagging of releases seems spotty: http://svn.code.sf.net/p/xmlrpc-c/code/release_number/ +# Because of this, we are following the "Super Stable" release channel + +DESCRIPTION="A lightweigt RPC library based on XML and HTTP" +HOMEPAGE="http://xmlrpc-c.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="abyss +cgi +curl +cxx +libxml2 threads test tools" + +REQUIRED_USE="test? ( abyss curl cxx ) tools? ( curl )" + +DEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0= + curl? ( net-misc/curl ) + libxml2? ( dev-libs/libxml2 )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-1.32.05-Wimplicit.patch" + "${FILESDIR}/${P}-cplusplus.patch" +) + +pkg_setup() { + use curl || ewarn "Curl support disabled: No client library will be built" +} + +src_prepare() { + sed -i \ + -e "/CFLAGS_COMMON/s|-g -O3$||" \ + -e "/CXXFLAGS_COMMON/s|-g$||" \ + common.mk || die + + eapply ${PATCHES[@]} + eapply_user +} + +src_configure() { + econf \ + --disable-wininet-client \ + --disable-libwww-client \ + --without-libwww-ssl \ + $(use_enable libxml2 libxml2-backend) \ + $(use_enable threads abyss-threads) \ + $(use_enable cgi cgi-server) \ + $(use_enable abyss abyss-server) \ + $(use_enable cxx cplusplus) \ + $(use_enable curl curl-client) +} + +src_compile() { + # Parallel builds are fixed in v 1.43.x or newer + emake -j1 + use tools && emake -rC "${S}"/tools +} + +src_install() { + default + use tools && emake DESTDIR="${D}" -rC "${S}"/tools install +} -- cgit v1.2.3