Files @ 333e0a612ea0
Branch filter:

Location: ohnobinki_overlay/dev-libs/liblist/liblist-2.3.1.ebuild

333e0a612ea0 1.3 KiB application/vnd.gentoo.ebuild Show Annotation Show as Raw Download as Raw
binki
Added patch so that #include <SDL.h> is used instead of #include <SDL/SDL_*.h>, fixing compilation under portage-multilib. Dropped old warzone2100.2.2.4.ebuild.
(Portage version: 2.2_rc67-r8/hg/Linux x86_64)
(Signed Manifest commit)
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblist/liblist-2.1-r1.ebuild,v 1.1 2009/12/05 22:32:30 nerdboy Exp $

EAPI=2

inherit multilib

DESCRIPTION="This package provides generic linked-list manipulation routines, plus queues and stacks"
HOMEPAGE="http://ohnopub.net/liblist"
SRC_URI="ftp://ohnopublishing.net/mirror/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc examples static-libs"

src_configure() {
	econf $(use_enable doc docs) \
		$(use_enable examples) \
		$(use_enable static-libs static)
}

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

	dodoc README || die

	if use examples; then
		insinto /usr/share/doc/${P}/examples
		doins examples/{*.c,Makefile,README} || die
		insinto /usr/share/doc/${P}/examples/cache
		doins examples/cache/{*.c,README} || die
	fi

	if ! use static-libs; then
		rm -v "${D}"/usr/$(get_libdir)/liblist.la || die
		if use examples; then
			rm -v "${D}"/usr/$(get_libdir)/libcache.la || die
		fi
	fi
}

pkg_postinst() {
	elog "Note the man pages for this package have been renamed to avoid"
	elog "name collisions with some system functions, however, the libs"
	elog "and header files have not been changed."
	elog "The new names are llist, lcache, lqueue, and lstack."
}