diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-02-17 23:12:00 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-02-17 23:12:00 +0000 |
commit | b6fb8c5ca316fd56e00160e88696e127cd8834cc (patch) | |
tree | 175ae8ed754ab752373c2052f9283efda25e81bb /dev-db/sqlite | |
parent | sasl and sqlite multilib fixes. (diff) | |
download | gentoo-2-b6fb8c5ca316fd56e00160e88696e127cd8834cc.tar.gz gentoo-2-b6fb8c5ca316fd56e00160e88696e127cd8834cc.tar.bz2 gentoo-2-b6fb8c5ca316fd56e00160e88696e127cd8834cc.zip |
Stop using einstall. Multilib fixes.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'dev-db/sqlite')
-rw-r--r-- | dev-db/sqlite/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-2.8.16-multilib.patch | 108 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-2.8.16.ebuild | 26 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-3.1.2.ebuild | 8 |
4 files changed, 137 insertions, 12 deletions
diff --git a/dev-db/sqlite/ChangeLog b/dev-db/sqlite/ChangeLog index e62ce068c508..0dbb4120767a 100644 --- a/dev-db/sqlite/ChangeLog +++ b/dev-db/sqlite/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/sqlite # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.63 2005/02/15 21:24:33 arj Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.64 2005/02/17 23:12:00 eradicator Exp $ + + 17 Feb 2005; Jeremy Huddleston <eradicator@gentoo.org> + +files/sqlite-2.8.16-multilib.patch, sqlite-2.8.16.ebuild, + sqlite-3.1.2.ebuild: + Stop using einstall. Multilib fixes. *sqlite-3.1.2 (15 Feb 2005) diff --git a/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch b/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch new file mode 100644 index 000000000000..32111877c1b6 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch @@ -0,0 +1,108 @@ +diff -Naurp sqlite-2.8.16.orig/Makefile.in sqlite-2.8.16/Makefile.in +--- sqlite-2.8.16.orig/Makefile.in 2005-02-14 00:22:04.000000000 +0000 ++++ sqlite-2.8.16/Makefile.in 2005-02-17 18:22:50.174537727 +0000 +@@ -187,12 +187,12 @@ last_change: $(SRC) + | awk '{print $$5,$$6}' >last_change + + libsqlite.la: $(LIBOBJ) +- $(LTLINK) -o libsqlite.la $(LIBOBJ) ${RELEASE} -rpath @exec_prefix@/lib \ ++ $(LTLINK) -o libsqlite.la $(LIBOBJ) ${RELEASE} -rpath @libdir@ \ + -version-info "8:6:8" + + libtclsqlite.la: tclsqlite.lo libsqlite.la + $(LTLINK) -o libtclsqlite.la tclsqlite.lo \ +- libsqlite.la $(LIBTCL) -rpath @exec_prefix@/lib/sqlite \ ++ libsqlite.la $(LIBTCL) -rpath @libdir@/sqlite \ + -version-info "8:6:8" + + sqlite@TARGET_EXEEXT@: $(TOP)/src/shell.c libsqlite.la sqlite.h +@@ -465,14 +465,14 @@ doc: $(DOC) + mv $(DOC) doc + + install: sqlite libsqlite.la sqlite.h +- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib +- $(LTINSTALL) libsqlite.la $(DESTDIR)$(exec_prefix)/lib ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(LTINSTALL) libsqlite.la $(DESTDIR)@libdir@ + $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin + $(LTINSTALL) sqlite $(DESTDIR)$(exec_prefix)/bin + $(INSTALL) -d $(DESTDIR)$(prefix)/include + $(INSTALL) -m 0644 sqlite.h $(DESTDIR)$(prefix)/include +- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib/pkgconfig; +- $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)$(exec_prefix)/lib/pkgconfig; ++ $(INSTALL) -d $(DESTDIR)@libdir@/pkgconfig; ++ $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)@libdir@/pkgconfig; + + clean: + rm -f *.lo *.la *.o sqlite@TARGET_EXEEXT@ libsqlite.la sqlite.h opcodes.* +diff -Naurp sqlite-2.8.16.orig/Makefile.linux-gcc sqlite-2.8.16/Makefile.linux-gcc +--- sqlite-2.8.16.orig/Makefile.linux-gcc 2005-02-14 00:22:04.000000000 +0000 ++++ sqlite-2.8.16/Makefile.linux-gcc 2005-02-17 18:21:47.654969648 +0000 +@@ -14,7 +14,7 @@ + #### The toplevel directory of the source tree. This is the directory + # that contains this "Makefile.in" and the "configure.in" script. + # +-TOP = ../sqlite ++TOP = @@S@@ + + #### C Compiler and options for use in building executables that + # will run on the platform that is doing the build. +@@ -38,8 +38,8 @@ THREADSAFE = -DTHREADSAFE=0 + #### Specify any extra linker options needed to make the library + # thread safe + # +-#THREADLIB = -lpthread +-THREADLIB = ++THREADLIB = -lpthread ++#THREADLIB = + + #### Leave MEMORY_DEBUG undefined for maximum speed. Use MEMORY_DEBUG=1 + # to check for memory leaks. Use MEMORY_DEBUG=2 to print a log of all +@@ -64,7 +64,7 @@ EXE = + # will run on the target platform. This is usually the same + # as BCC, unless you are cross-compiling. + # +-TCC = gcc -O6 ++TCC = @@CC@@ @@CFLAGS@@ + #TCC = gcc -g -O0 -Wall + #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage + #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6 +@@ -72,23 +72,23 @@ TCC = gcc -O6 + + #### Tools used to build a static library. + # +-AR = ar cr ++AR = @@AR@@ cr + #AR = /opt/mingw/bin/i386-mingw32-ar cr +-RANLIB = ranlib ++RANLIB = @@RANLIB@@ + #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib + + #### Extra compiler options needed for programs that use the TCL library. + # +-#TCL_FLAGS = ++#TCL_FLAGS = @@TCL_FLAGS@@ + #TCL_FLAGS = -DSTATIC_BUILD=1 +-TCL_FLAGS = -I/home/drh/tcltk/8.4linux ++#TCL_FLAGS = -I/home/drh/tcltk/8.4linux + #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1 + #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux + + #### Linker options needed to link against the TCL library. + # +-#LIBTCL = -ltcl -lm -ldl +-LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl ++LIBTCL = -ltcl -lm -ldl ++#LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl + #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt + #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc + +@@ -100,7 +100,7 @@ READLINE_FLAGS = -DHAVE_READLINE=1 -I/us + #### Linker options needed by programs using readline() must link against. + # + #LIBREADLINE = +-LIBREADLINE = -static -lreadline -ltermcap ++LIBREADLINE = -static -lreadline -lncurses + + #### Should the database engine assume text is coded as UTF-8 or iso8859? + # diff --git a/dev-db/sqlite/sqlite-2.8.16.ebuild b/dev-db/sqlite/sqlite-2.8.16.ebuild index 4c469de79e2b..69a3a5c8ef77 100644 --- a/dev-db/sqlite/sqlite-2.8.16.ebuild +++ b/dev-db/sqlite/sqlite-2.8.16.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-2.8.16.ebuild,v 1.1 2005/02/15 21:24:33 arj Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-2.8.16.ebuild,v 1.2 2005/02/17 23:12:00 eradicator Exp $ -inherit eutils +inherit eutils toolchain-funcs IUSE="nls" @@ -16,11 +16,25 @@ LICENSE="as-is" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~mips ~hppa ~ppc64 ~amd64 ~ppc-macos" src_unpack() { - unpack ${A} - use hppa && epatch ${FILESDIR}/${P}-alignement-fix.patch + use hppa && epatch ${FILESDIR}/${PN}-2.8.15-alignement-fix.patch + + epatch ${FILESDIR}/${P}-multilib.patch + + if use nls; then + ENCODING=${ENCODING-"UTF8"} + else + ENCODING="ISO8859" + fi + sed -i -e "s:@@S@@:${S}:g" \ + -e "s:@@CC@@:$(tc-getCC):g" \ + -e "s:@@CFLAGS@@:${CFLAGS}:g" \ + -e "s:@@AR@@:$(tc-getAR):g" \ + -e "s:@@RANLIB@@:$(tc-getRANLIB):g" \ + -e "s:@@ENCODING@@:${ENCODING}:g" \ + ${S}/Makefile.linux-gcc } src_compile() { @@ -32,9 +46,9 @@ src_compile() { } src_install () { - dodir /usr/{bin,include,lib} + dodir /usr/{bin,include,$(get_libdir)} - einstall || die + make DESTDIR="${D}" install || die dobin lemon dodoc README VERSION diff --git a/dev-db/sqlite/sqlite-3.1.2.ebuild b/dev-db/sqlite/sqlite-3.1.2.ebuild index e345f7546218..1462dbd47d7f 100644 --- a/dev-db/sqlite/sqlite-3.1.2.ebuild +++ b/dev-db/sqlite/sqlite-3.1.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.1.2.ebuild,v 1.1 2005/02/15 21:24:33 arj Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.1.2.ebuild,v 1.2 2005/02/17 23:12:00 eradicator Exp $ IUSE="nls nothreadsafe" @@ -37,6 +37,7 @@ src_compile() { myconf="${myconf} --disable-threadsafe" fi myconf="${myconf} `use_with nls utf8`" + myconf="--with-tcl=/usr/$(get_libdir)/" econf ${myconf} || die emake all || die # doc is not working yet in 3.1.2 } @@ -50,10 +51,7 @@ src_compile() { #} src_install () { - addwrite "/usr/lib/tcl8.4/sqlite3" - dodir /usr/{bin,include,lib} - - einstall || die + make DESTDIR="${D}" install || die dobin lemon dodoc README VERSION |