libdebian-installer-0.61: adding ebuild
Ricardo Salveti [Sun, 25 Jan 2009 23:23:22 +0000 (20:23 -0300)]
Signed-off-by: Ricardo Salveti <ricardo.salveti@openbossa.org>

dev-libs/libdebian-installer/Manifest [new file with mode: 0644]
dev-libs/libdebian-installer/files/libdebian-installer-0.61-dont-install-docs.patch [new file with mode: 0644]
dev-libs/libdebian-installer/files/libdebian-installer-0.61-fix-warnings.patch [new file with mode: 0644]
dev-libs/libdebian-installer/libdebian-installer-0.61.ebuild [new file with mode: 0644]

diff --git a/dev-libs/libdebian-installer/Manifest b/dev-libs/libdebian-installer/Manifest
new file mode 100644 (file)
index 0000000..ef2ec2f
--- /dev/null
@@ -0,0 +1,4 @@
+AUX libdebian-installer-0.61-dont-install-docs.patch 453 RMD160 df6e97242d9814eddee4e753435c5fe411ae0a5f SHA1 ba6660d6586a839919f900f7807cfca51fc8a5e1 SHA256 63a74705fb510c823e472f89109b6296987eecce59fe0fdb0fdff277e57031f0
+AUX libdebian-installer-0.61-fix-warnings.patch 1491 RMD160 0f94371f0f3a0b30beb3a0b1140c51058b2e9ac2 SHA1 c2e59314abc4b5dcb766c20fe9841a3b6ddf8a77 SHA256 bb06539853ffd11387c3d61f7f031a7f00b57937bce50e49b89785c6e9701dcc
+DIST libdebian-installer_0.61.tar.gz 390484 RMD160 2e7435d2d51e6e8a53e5b63ff69fe381530b776b SHA1 8aa64040851b9ebbcc360cf5470cd2922290af10 SHA256 464a8129790cce7f8837417a224b76a0b70aae9b1ef29b776a0058a5269a815f
+EBUILD libdebian-installer-0.61.ebuild 948 RMD160 c9a2205274aca2cab9200d74cf93c51fd5b65964 SHA1 cdbd0aef181e422e235d1ca79e17a3b3534c5b7d SHA256 3bd5f517d6947b1d8ef52575d1f0cea7a6e75faabbbd463d3adb6067549c2551
diff --git a/dev-libs/libdebian-installer/files/libdebian-installer-0.61-dont-install-docs.patch b/dev-libs/libdebian-installer/files/libdebian-installer-0.61-dont-install-docs.patch
new file mode 100644 (file)
index 0000000..aa8c54d
--- /dev/null
@@ -0,0 +1,13 @@
+Index: libdebian-installer/Makefile.in
+===================================================================
+--- libdebian-installer.orig/Makefile.in
++++ libdebian-installer/Makefile.in
+@@ -197,7 +197,7 @@ target_alias = @target_alias@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ AUTOMAKE_OPTIONS = foreign
+-SUBDIRS = doc include src
++SUBDIRS = include src
+ pkgconfigdir = ${libdir}/pkgconfig
+ pkgconfig_DATA = \
+       libdebian-installer.pc \
diff --git a/dev-libs/libdebian-installer/files/libdebian-installer-0.61-fix-warnings.patch b/dev-libs/libdebian-installer/files/libdebian-installer-0.61-fix-warnings.patch
new file mode 100644 (file)
index 0000000..82aa645
--- /dev/null
@@ -0,0 +1,26 @@
+Index: libdebian-installer/src/Makefile.in
+===================================================================
+--- libdebian-installer.orig/src/Makefile.in
++++ libdebian-installer/src/Makefile.in
+@@ -66,7 +66,7 @@ libdebian_installer_la_OBJECTS = $(am_li
+ libdebian_installer_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(libdebian_installer_la_LDFLAGS) $(LDFLAGS) -o $@
+-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/include/debian-installer
++DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/include
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+Index: libdebian-installer/src/system/Makefile.in
+===================================================================
+--- libdebian-installer.orig/src/system/Makefile.in
++++ libdebian-installer/src/system/Makefile.in
+@@ -46,7 +46,7 @@ LTLIBRARIES = $(noinst_LTLIBRARIES)
+ am_libsystem_la_OBJECTS = devfs.lo dpkg.lo packages.lo \
+       prebaseconfig.lo utils.lo
+ libsystem_la_OBJECTS = $(am_libsystem_la_OBJECTS)
+-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/include/debian-installer
++DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/include
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
diff --git a/dev-libs/libdebian-installer/libdebian-installer-0.61.ebuild b/dev-libs/libdebian-installer/libdebian-installer-0.61.ebuild
new file mode 100644 (file)
index 0000000..739e26a
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 2009 Ricardo Salveti de Araujo
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="Library of common debian-installer functions"
+HOMEPAGE="http://packages.qa.debian.org/libd/libdebian-installer.html"
+SRC_URI="mirror://debian/pool/main/libd/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc"
+
+DEPEND="virtual/libc
+       sys-devel/libtool
+       dev-util/pkgconfig
+       sys-devel/gcc
+       doc? ( app-doc/doxygen )"
+
+RDEPEND="virtual/libc"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch "${FILESDIR}/${P}-fix-warnings.patch"
+       epatch "${FILESDIR}/${P}-dont-install-docs.patch"
+}
+
+src_compile() {
+       emake || die "emake failed"
+
+       if use doc; then
+               emake -C doc doc || die "emake for docs failed"
+       fi
+}
+
+src_install() {
+       emake install DESTDIR="${D}" || die "emake install failed"
+
+       if use doc; then
+               dohtml -r doc/html/*
+       fi
+
+       dodoc HACKING debian/changelog 
+}