diff options
Diffstat (limited to 'net-misc/mulk')
-rw-r--r-- | net-misc/mulk/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/mulk/files/mulk-0.6.0-large-file.patch | 32 | ||||
-rw-r--r-- | net-misc/mulk/metadata.xml | 13 | ||||
-rw-r--r-- | net-misc/mulk/mulk-0.6.0.ebuild | 44 |
4 files changed, 100 insertions, 0 deletions
diff --git a/net-misc/mulk/ChangeLog b/net-misc/mulk/ChangeLog new file mode 100644 index 000000000000..f7c141d1cd65 --- /dev/null +++ b/net-misc/mulk/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-misc/mulk +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/mulk/ChangeLog,v 1.1 2011/08/07 17:38:25 hwoarang Exp $ + +*mulk-0.6.0 (07 Aug 2011) + + 07 Aug 2011; Markos Chandras <hwoarang@gentoo.org> +mulk-0.6.0.ebuild, + +files/mulk-0.6.0-large-file.patch, +metadata.xml: + Moved from sunrise overlay. Thanks to Sebastian Pipping <sping@gentoo.org>. + Bug #273119 + diff --git a/net-misc/mulk/files/mulk-0.6.0-large-file.patch b/net-misc/mulk/files/mulk-0.6.0-large-file.patch new file mode 100644 index 000000000000..801433080e46 --- /dev/null +++ b/net-misc/mulk/files/mulk-0.6.0-large-file.patch @@ -0,0 +1,32 @@ +Index: mulk-0.6.0/lib/defines.h +=================================================================== +--- mulk-0.6.0.orig/lib/defines.h ++++ mulk-0.6.0/lib/defines.h +@@ -41,6 +41,12 @@ + #include <stdio.h> + #include <string.h> + #include <time.h> ++#ifdef HAVE_STDINT_H ++ #include <stdint.h> ++#endif ++#ifdef HAVE_INTTYPES_H ++ #include <inttypes.h> ++#endif + #include <curl/curl.h> + #include <curl/multi.h> + #include <uriparser/Uri.h> +Index: mulk-0.6.0/lib/m_malloc.c +=================================================================== +--- mulk-0.6.0.orig/lib/m_malloc.c ++++ mulk-0.6.0/lib/m_malloc.c +@@ -34,10 +34,6 @@ + + #ifdef MULKDEBUG + +-#ifdef HAVE_STDINT_H +-#include <stdint.h> /* for uint32_t */ +-#endif +- + #define HASH_TABLE_SIZE 131072 /* 2^17, use always power of 2 */ + #define HASH_CHUNK_SIZE 2048 + #define INC_INDEX(i) i = ((i == HASH_TABLE_SIZE-1) ? 0 : i+1) diff --git a/net-misc/mulk/metadata.xml b/net-misc/mulk/metadata.xml new file mode 100644 index 000000000000..c721dc9dccd8 --- /dev/null +++ b/net-misc/mulk/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>hwoarang@@gentoo.org</email> + <name>Markos Chandras</name> +</maintainer> +<use> + <flag name='checksum'>Enable checksum verification for Metalink from <pkg>dev-libs/openssl</pkg></flag> + <flag name='metalink'>Enable support for <pkg>media-libs/libmetalink</pkg></flag> +</use> +</pkgmetadata> diff --git a/net-misc/mulk/mulk-0.6.0.ebuild b/net-misc/mulk/mulk-0.6.0.ebuild new file mode 100644 index 000000000000..d5fc605de88e --- /dev/null +++ b/net-misc/mulk/mulk-0.6.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/mulk/mulk-0.6.0.ebuild,v 1.1 2011/08/07 17:38:25 hwoarang Exp $ + +EAPI="4" + +inherit base + +MY_PV=${PV/_beta/} +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Download agent similar to wget/curl" +HOMEPAGE="http://mulk.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="checksum debug metalink" + +DEPEND="net-misc/curl + app-text/htmltidy + dev-libs/uriparser + metalink? ( + media-libs/libmetalink + checksum? ( dev-libs/openssl ) + )" + +REQUIRE_USE="checksum? ( metalink )" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${P}-large-file.patch +) + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable metalink) \ + $(use metalink && use checksum && echo --enable-checksum) +} |