diff options
author | Markus Ullmann <jokey@gentoo.org> | 2006-10-10 13:29:34 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2006-10-10 13:29:34 +0000 |
commit | 613a647c2159571c3591fe29a1079fa5d68d9754 (patch) | |
tree | 62bcd01485ee1c1ffb43ac4c5e5a407d7706c3b7 /dev-libs/cgilib | |
parent | New package: RETicker-0.4.5k, imported form breakmygentoo.net. Big thanks to... (diff) | |
download | gentoo-2-613a647c2159571c3591fe29a1079fa5d68d9754.tar.gz gentoo-2-613a647c2159571c3591fe29a1079fa5d68d9754.tar.bz2 gentoo-2-613a647c2159571c3591fe29a1079fa5d68d9754.zip |
Making cross-compile ready wrt bug #147431 thanks to Cedric Krier
(Portage version: 2.1.2_pre2-r6)
Diffstat (limited to 'dev-libs/cgilib')
-rw-r--r-- | dev-libs/cgilib/cgilib-0.5.ebuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/dev-libs/cgilib/cgilib-0.5.ebuild b/dev-libs/cgilib/cgilib-0.5.ebuild index 37619c13277c..b16237f1db8a 100644 --- a/dev-libs/cgilib/cgilib-0.5.ebuild +++ b/dev-libs/cgilib/cgilib-0.5.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cgilib/cgilib-0.5.ebuild,v 1.16 2006/10/08 00:34:12 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cgilib/cgilib-0.5.ebuild,v 1.17 2006/10/10 13:29:34 jokey Exp $ + +inherit toolchain-funcs DESCRIPTION="A programmers library for the CGI interface" HOMEPAGE="http://www.infodrom.org/projects/cgilib/" @@ -13,17 +15,19 @@ IUSE="" src_unpack() { unpack ${A} - cd "${S}" - sed -i \ - -e "s|^\(CFLAGS = -I. -Wall\).*$|\1 ${CFLAGS}|" \ - Makefile \ - || die "sed Makefile failed" + cd ${S} + sed -i "s|^\(CFLAGS = -I. -Wall\).*$|\1 ${CFLAGS}|" Makefile || \ + die "sed Makefile failed" +} + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="-I. -Wall ${CFLAGS}" || die "emake failed" } src_install() { insinto /usr/include - doins cgi.h || die - dolib.a libcgi.a || die + doins cgi.h + dolib.a libcgi.a doman *.[35] dodoc CHANGES CREDITS readme cookies.txt } |