diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-12-07 18:58:17 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-12-07 18:58:17 +0000 |
commit | 11ee7287c0471b7e3d5a84c06854243a07d0feba (patch) | |
tree | 38e233da2ed584038d5898f056484182af5d89f3 /dev-tcltk/tcl-sql | |
parent | Fix parallel build warnings. Thanks to Diego Elio Pettenò <flameeyes@gentoo.... (diff) | |
download | gentoo-2-11ee7287c0471b7e3d5a84c06854243a07d0feba.tar.gz gentoo-2-11ee7287c0471b7e3d5a84c06854243a07d0feba.tar.bz2 gentoo-2-11ee7287c0471b7e3d5a84c06854243a07d0feba.zip |
Resepct LDFLAGS and QA, #334977
(Portage version: 2.2.0_alpha7/cvs/Linux x86_64)
Diffstat (limited to 'dev-tcltk/tcl-sql')
-rw-r--r-- | dev-tcltk/tcl-sql/ChangeLog | 10 | ||||
-rw-r--r-- | dev-tcltk/tcl-sql/files/ldflags.patch | 28 | ||||
-rw-r--r-- | dev-tcltk/tcl-sql/tcl-sql-20000114-r1.ebuild | 36 | ||||
-rw-r--r-- | dev-tcltk/tcl-sql/tcl-sql-20000114.ebuild | 37 |
4 files changed, 72 insertions, 39 deletions
diff --git a/dev-tcltk/tcl-sql/ChangeLog b/dev-tcltk/tcl-sql/ChangeLog index b0c00e21fa20..cb749d04f070 100644 --- a/dev-tcltk/tcl-sql/ChangeLog +++ b/dev-tcltk/tcl-sql/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-tcltk/tcl-sql -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tcl-sql/ChangeLog,v 1.4 2006/11/23 17:37:59 vivo Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tcl-sql/ChangeLog,v 1.5 2010/12/07 18:58:12 jlec Exp $ + +*tcl-sql-20000114-r1 (07 Dec 2010) + + 07 Dec 2010; Justin Lecher <jlec@gentoo.org> -tcl-sql-20000114.ebuild, + +tcl-sql-20000114-r1.ebuild, +files/ldflags.patch: + Resepct LDFLAGS and QA, #334977 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> tcl-sql-20000114.ebuild: dev-db/mysql => virtual/mysql diff --git a/dev-tcltk/tcl-sql/files/ldflags.patch b/dev-tcltk/tcl-sql/files/ldflags.patch new file mode 100644 index 000000000000..571ff9d0c4d7 --- /dev/null +++ b/dev-tcltk/tcl-sql/files/ldflags.patch @@ -0,0 +1,28 @@ +diff --git a/Makefile b/Makefile +index 81a80ea..7738920 100644 +--- a/Makefile ++++ b/Makefile +@@ -22,8 +22,8 @@ OBJS = $(SRC:%.cc=$(OBJ_DIR)/%.o) + + # -- Configurable parameters: ---------------------------- + # Section II: +-CC = g++ +-LD = g++ ++CXX ?= g++ ++LD ?= g++ + FLAGS = -Wall + # include the path to your libmysqlclient as one of the -L's + LD_FLAGS = -L/usr/lib/mysql -L/usr/local/mysql/lib \ +@@ -69,10 +69,10 @@ CURDATE = `date +%y%m%d` + all: sql.so + + $(OBJ_DIR)/%.o: %.cc +- $(CC) -c $(INCLUDE) $(EXTRA_FLAGS) $(FLAGS) -o $@ $< ++ $(CXX) $(CXXFLAGS) -c $(INCLUDE) $(EXTRA_FLAGS) $(FLAGS) -o $@ $< + + sql.so: $(OBJS) +- $(LD) $(OBJS) $(EXTRA_LINKS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so ++ $(CXX) $(LDFLAGS) $(OBJS) $(EXTRA_LINKS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so + + clean: + @ rm -f *~ $(OBJ_DIR)/*.o sql.so diff --git a/dev-tcltk/tcl-sql/tcl-sql-20000114-r1.ebuild b/dev-tcltk/tcl-sql/tcl-sql-20000114-r1.ebuild new file mode 100644 index 000000000000..1328585f54d6 --- /dev/null +++ b/dev-tcltk/tcl-sql/tcl-sql-20000114-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tcl-sql/tcl-sql-20000114-r1.ebuild,v 1.1 2010/12/07 18:58:12 jlec Exp $ + +EAPI="3" + +inherit eutils toolchain-funcs + +DESCRIPTION="A generic Tcl interface to SQL databases." +HOMEPAGE="http://www.parand.com/tcl-sql/" +SRC_URI="mirror://sourceforge/tcl-sql/${PN}-${PV}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc" +IUSE="" + +DEPEND=" + dev-lang/tcl + virtual/mysql" + +S="${WORKDIR}"/${PN} + +src_prepare() { + find . -type f -exec chmod 644 '{}' \; || die + epatch \ + "${FILESDIR}"/fix-const.patch \ + "${FILESDIR}"/ldflags.patch + tc-export CXX +} + +src_install() { + dolib.so sql.so || die + dodoc CHANGES.txt CODE_DESCRIPTION.txt docs/sample.full.txt docs/sample.simple.txt || die + dohtml README.html docs/api.html || die +} diff --git a/dev-tcltk/tcl-sql/tcl-sql-20000114.ebuild b/dev-tcltk/tcl-sql/tcl-sql-20000114.ebuild deleted file mode 100644 index e52cc862b4a8..000000000000 --- a/dev-tcltk/tcl-sql/tcl-sql-20000114.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tcl-sql/tcl-sql-20000114.ebuild,v 1.5 2007/07/15 03:37:38 mr_bones_ Exp $ - -inherit eutils - -DESCRIPTION="A generic Tcl interface to SQL databases." -HOMEPAGE="http://www.parand.com/tcl-sql/" -SRC_URI="mirror://sourceforge/tcl-sql/${PN}-${PV}.tgz" -LICENSE="BSD" -SLOT="0" -KEYWORDS="~x86 ~ppc" -IUSE="" - -DEPEND="dev-lang/tcl - virtual/mysql" - -S=${WORKDIR}/${PN} - -src_unpack() { - unpack ${A} - cd ${S} - - chmod +w sql-mysql.cc - epatch ${FILESDIR}/fix-const.patch -} - -src_compile() { - emake || die -} - -src_install() { - mkdir -p ${D}/usr/lib/tcl-sql - cp sql.so ${D}/usr/lib/tcl-sql/libtcl-sql.so - dodoc CHANGES.txt CODE_DESCRIPTION.txt LICENSE.txt docs/sample.full.txt docs/sample.simple.txt - dohtml README.html docs/api.html -} |