diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-09-30 10:05:17 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-09-30 10:05:17 +0000 |
commit | 4ee66cc8e76ab23c69f4b07c7d7fa4d10e73a5d8 (patch) | |
tree | da9624911efb5efa5b5d1c46d73aeb36a16f8832 /net-libs | |
parent | Bump version dependency on libtextcat. (diff) | |
download | gentoo-2-4ee66cc8e76ab23c69f4b07c7d7fa4d10e73a5d8.tar.gz gentoo-2-4ee66cc8e76ab23c69f4b07c7d7fa4d10e73a5d8.tar.bz2 gentoo-2-4ee66cc8e76ab23c69f4b07c7d7fa4d10e73a5d8.zip |
Initial import (bug #104244).
(Portage version: 2.2.0_alpha60/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/canlock/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/canlock/canlock-2b.ebuild | 39 | ||||
-rw-r--r-- | net-libs/canlock/files/canlock-2b-make.patch | 45 | ||||
-rw-r--r-- | net-libs/canlock/metadata.xml | 9 |
4 files changed, 103 insertions, 0 deletions
diff --git a/net-libs/canlock/ChangeLog b/net-libs/canlock/ChangeLog new file mode 100644 index 000000000000..863644278ce3 --- /dev/null +++ b/net-libs/canlock/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-libs/canlock +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/canlock/ChangeLog,v 1.1 2011/09/30 10:05:17 radhermit Exp $ + +*canlock-2b (30 Sep 2011) + + 30 Sep 2011; Tim Harder <radhermit@gentoo.org> +canlock-2b.ebuild, + +files/canlock-2b-make.patch, +metadata.xml: + Initial import (bug #104244). + diff --git a/net-libs/canlock/canlock-2b.ebuild b/net-libs/canlock/canlock-2b.ebuild new file mode 100644 index 000000000000..b721e8f8b251 --- /dev/null +++ b/net-libs/canlock/canlock-2b.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/canlock/canlock-2b.ebuild,v 1.1 2011/09/30 10:05:17 radhermit Exp $ + +EAPI=4 + +inherit eutils multilib toolchain-funcs + +MY_P="${P/-/_}" +DESCRIPTION="A library for creating and verifying Usenet cancel locks" +HOMEPAGE="http://packages.qa.debian.org/c/canlock.html" +SRC_URI="mirror://debian/pool/main/c/${PN}/${MY_P}.orig.tar.gz + mirror://debian/pool/main/c/${PN}/${MY_P}-6.diff.gz" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +S=${WORKDIR}/${P/-/} + +src_prepare() { + epatch "${DISTDIR}"/${MY_P}-6.diff.gz \ + "${FILESDIR}"/${P}-make.patch +} + +src_compile() { + emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" +} + +src_install() { + use static-libs && dolib.a src/libcanlock.a + dolib.so src/libcanlock.so.2.0.0 + dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so.2 + dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so + insinto /usr/include + doins include/canlock.h + dodoc CHANGES README doc/HOWTO +} diff --git a/net-libs/canlock/files/canlock-2b-make.patch b/net-libs/canlock/files/canlock-2b-make.patch new file mode 100644 index 000000000000..5ea34530cebd --- /dev/null +++ b/net-libs/canlock/files/canlock-2b-make.patch @@ -0,0 +1,45 @@ +--- canlock2b.orig/Makefile ++++ canlock2b/Makefile +@@ -15,16 +15,17 @@ + $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS) + + $(STATIC_LIB): +- cd src && make ++ cd src && $(MAKE) libcanlock.so.2.0.0 ++ cd src && $(MAKE) libcanlock.a + ln -s src/libcanlock.a libcanlock.a + + clean: + rm -f src/*.o t/*.o t/*.out *.gmon gmon.* +- cd src && make clean ++ cd src && $(MAKE) clean + rm -f *.a canlocktest hmactest sha1test *.exe *.h lib-stamp + + install: all +- cd src && make install DESTDIR=$(DESTDIR) ++ cd src && $(MAKE) install DESTDIR=$(DESTDIR) + install --mode=644 include/canlock.h $(DESTDIR)/usr/include + + test: all +--- canlock2b.orig/src/Makefile ++++ canlock2b/src/Makefile +@@ -13,8 +13,8 @@ + + libcanlock.a: + $(CC) $(CFLAGS) -c $(SOURCES) +- ar cru libcanlock.a $(OBJS) +- ranlib libcanlock.a ++ $(AR) cru libcanlock.a $(OBJS) ++ $(RANLIB) libcanlock.a + rm $(OBJS) + + libcanlock.so.2.0.0: +@@ -26,7 +26,7 @@ + cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so.2 + cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so + $(INSTALL) libcanlock.a $(DESTDIR)/usr/lib/libcanlock.a +- ranlib $(DESTDIR)/usr/lib/libcanlock.a ++ $(RANLIB) $(DESTDIR)/usr/lib/libcanlock.a + + clean: + rm -f $(OBJS) $(LIBS) diff --git a/net-libs/canlock/metadata.xml b/net-libs/canlock/metadata.xml new file mode 100644 index 000000000000..1580c9f41f85 --- /dev/null +++ b/net-libs/canlock/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-news</herd> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> +</pkgmetadata> |