public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/lockdev: metadata.xml lockdev-1.0.3.1.2.ebuild ChangeLog
@ 2009-09-11  5:58 Jonathan Callen (abcd)
  0 siblings, 0 replies; only message in thread
From: Jonathan Callen (abcd) @ 2009-09-11  5:58 UTC (permalink / raw
  To: gentoo-commits

abcd        09/09/11 05:58:12

  Added:                metadata.xml lockdev-1.0.3.1.2.ebuild ChangeLog
  Log:
  New ebuild. Thanks to Nick Fortino <nfortino@gmail.com> for initial autotools patch (bug #257333).
  (Portage version: -svn/cvs/Linux i686)

Revision  Changes    Path
1.1                  dev-libs/lockdev/metadata.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
  <email>abcd@gentoo.org</email>
  <name>Jonathan Callen</name>
</maintainer>
</pkgmetadata>



1.1                  dev-libs/lockdev/lockdev-1.0.3.1.2.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2.ebuild?rev=1.1&content-type=text/plain

Index: lockdev-1.0.3.1.2.ebuild
===================================================================
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2.ebuild,v 1.1 2009/09/11 05:58:12 abcd Exp $

EAPI="2"

GENTOO_DEPEND_ON_PERL="no"
inherit toolchain-funcs base perl-module eutils versionator autotools

MAJOR=$(get_major_version)
MY_PV=$(get_version_component_range 1-3)
MY_P=${PN}-${MY_PV}
DEB_PV=$(replace_version_separator 3 '-')
DEB_P=${PN}_${DEB_PV}

DESCRIPTION="Library for locking devices"
HOMEPAGE="http://packages.debian.org/source/sid/lockdev"
SRC_URI="
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}.orig.tar.gz
	mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.diff.gz
"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE="perl"

DEPEND="
	perl? ( dev-lang/perl[-build] )
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${MY_P}-add-autotools.patch"
	"${FILESDIR}/${MY_P}-fix-perl.patch"
)

S=${WORKDIR}/${PN}-${MY_PV}
PERL_S=${S}/LockDev

pkg_setup() {
	use perl && perl-module_pkg_setup
}

src_prepare() {
	cd "${WORKDIR}"
	# Note: we do *not* want to be in ${S} for this, as that breaks the patch
	epatch "${WORKDIR}/${DEB_P}.diff"

	cd "${S}"
	base_src_prepare

	eautoreconf
}

src_configure() {
	econf

	if use perl; then
		cd "${PERL_S}"
		perl-module_src_configure
	fi
}

src_compile() {
	emake || die "emake failed"

	if use perl; then
		cd "${PERL_S}"
		perl-module_src_compile
	fi
}

src_test() {
	if use perl; then
		cd "${PERL_S}"
		SRC_TEST="do"
		export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${S}/.libs"
		perl-module_src_test
	fi
}

src_install() {
	emake DESTDIR="${D}" install || die "make install failed"

	dodoc AUTHORS ChangeLog* debian/NEWS README.debug || die "dodoc failed"
	newdoc debian/changelog changelog.debian || die "newdoc changelog.debian failed"

	if use perl; then
		cd "${PERL_S}"
		mytargets="pure_install"
		docinto perl
		perl-module_src_install
	fi
}

pkg_preinst() {
	use perl && perl-module_pkg_preinst
}



1.1                  dev-libs/lockdev/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# ChangeLog for dev-libs/lockdev
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.1 2009/09/11 05:58:12 abcd Exp $

*lockdev-1.0.3.1.2 (11 Sep 2009)

  11 Sep 2009; Jonathan Callen <abcd@gentoo.org> +lockdev-1.0.3.1.2.ebuild,
  +files/lockdev-1.0.3-add-autotools.patch,
  +files/lockdev-1.0.3-fix-perl.patch, +metadata.xml:
  New ebuild, required for schroot. Thanks to Nick Fortino
  <nfortino@gmail.com> for initial autotools patch (bug #257333).







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-11  5:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11  5:58 [gentoo-commits] gentoo-x86 commit in dev-libs/lockdev: metadata.xml lockdev-1.0.3.1.2.ebuild ChangeLog Jonathan Callen (abcd)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox