diff options
author | David Shakaryan <omp@gentoo.org> | 2007-01-10 01:18:28 +0000 |
---|---|---|
committer | David Shakaryan <omp@gentoo.org> | 2007-01-10 01:18:28 +0000 |
commit | 2befdccdbd160137d3b1b380de1da17f915b87c5 (patch) | |
tree | 9499e8314845e6e65c853877583302472bc72ee9 /sys-libs/libixp | |
parent | Stable on Alpha. (diff) | |
download | gentoo-2-2befdccdbd160137d3b1b380de1da17f915b87c5.tar.gz gentoo-2-2befdccdbd160137d3b1b380de1da17f915b87c5.tar.bz2 gentoo-2-2befdccdbd160137d3b1b380de1da17f915b87c5.zip |
Compile shared object file; thanks to Maxim Treskin for patch. (bug #161105)
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'sys-libs/libixp')
-rw-r--r-- | sys-libs/libixp/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libixp/files/digest-libixp-0.2-r1 | 3 | ||||
-rw-r--r-- | sys-libs/libixp/files/libixp-0.2-shared-object.patch | 73 | ||||
-rw-r--r-- | sys-libs/libixp/libixp-0.2-r1.ebuild | 37 |
4 files changed, 119 insertions, 2 deletions
diff --git a/sys-libs/libixp/ChangeLog b/sys-libs/libixp/ChangeLog index a587154111e7..15bd5d083a92 100644 --- a/sys-libs/libixp/ChangeLog +++ b/sys-libs/libixp/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-libs/libixp -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libixp/ChangeLog,v 1.1 2006/12/28 07:20:16 omp Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libixp/ChangeLog,v 1.2 2007/01/10 01:18:27 omp Exp $ + + 10 Jan 2007; David Shakaryan <omp@gentoo.org> + +files/libixp-0.2-shared-object.patch, +libixp-0.2-r1.ebuild: + Compile shared object file; thanks to Maxim Treskin for patch. (bug #161105) 28 Dec 2006; David Shakaryan <omp@gentoo.org> +libixp-0.2.ebuild, +metadata.xml: diff --git a/sys-libs/libixp/files/digest-libixp-0.2-r1 b/sys-libs/libixp/files/digest-libixp-0.2-r1 new file mode 100644 index 000000000000..fb7204d6b0af --- /dev/null +++ b/sys-libs/libixp/files/digest-libixp-0.2-r1 @@ -0,0 +1,3 @@ +MD5 e50c613f7410bc1cff3a18926804202f libixp-0.2.tar.gz 20701 +RMD160 a0738f88ea8b150f1eead51ef9270bf567d7795e libixp-0.2.tar.gz 20701 +SHA256 5e5eec16dd02bce3f014b90df029e91136031852568ff9a147d3f99f6eaf0143 libixp-0.2.tar.gz 20701 diff --git a/sys-libs/libixp/files/libixp-0.2-shared-object.patch b/sys-libs/libixp/files/libixp-0.2-shared-object.patch new file mode 100644 index 000000000000..c3318d02932e --- /dev/null +++ b/sys-libs/libixp/files/libixp-0.2-shared-object.patch @@ -0,0 +1,73 @@ +diff -u libixp-0.2_orig/config.mk libixp-0.2/config.mk +--- libixp-0.2_orig/config.mk 2006-12-27 17:59:09.000000000 +0600 ++++ libixp-0.2/config.mk 2007-01-09 10:57:38.699888388 +0600 +@@ -14,6 +14,7 @@ + # flags + CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" + LDFLAGS = ${LIBS} ++SOFLAGS = -fPIC -shared + #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" + #LDFLAGS = -g ${LIBS} + +diff -u libixp-0.2_orig/Makefile libixp-0.2/Makefile +--- libixp-0.2_orig/Makefile 2006-12-27 17:59:09.000000000 +0600 ++++ libixp-0.2/Makefile 2007-01-09 11:06:30.926977572 +0600 +@@ -9,13 +9,14 @@ + OBJ = ${SRC:.c=.o} + OBJIXPC = ${SRCIXPC:.c=.o} + +-all: options libixp.a ixpc ++all: options libixp.a libixp.so ixpc + + options: + @echo libixp build options: + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" ++ @echo "SOFLAGS = ${SOFLAGS}" + @echo "LD = ${LD}" + + .c.o: +@@ -29,6 +30,10 @@ + @${AR} $@ ${OBJ} + @${RANLIB} $@ + ++libixp.so: ${OBJ} ++ @echo CC $@ ++ @${CC} ${SOFLAGS} -o $@ ${OBJ} ++ + ixpc: ${OBJIXPC} + @echo LD $@ + @${LD} -o $@ ${OBJIXPC} ${LDFLAGS} -lixp +@@ -36,7 +41,7 @@ + + clean: + @echo cleaning +- @rm -f ixpc libixp.a ${OBJ} ${OBJIXPC} libixp-${VERSION}.tar.gz ++ @rm -f ixpc libixp.a libixp.so ${OBJ} ${OBJIXPC} libixp-${VERSION}.tar.gz + + dist: clean + @echo creating dist tarball +@@ -55,6 +60,9 @@ + @mkdir -p ${DESTDIR}${PREFIX}/lib + @cp -f libixp.a ${DESTDIR}${PREFIX}/lib + @chmod 644 ${DESTDIR}${PREFIX}/lib/libixp.a ++ @cp -f libixp.so ${DESTDIR}${PREFIX}/lib/libixp.so.${VERSION} ++ @chmod 755 ${DESTDIR}${PREFIX}/lib/libixp.so.${VERSION} ++ @ln -s libixp.so.${VERSION} ${DESTDIR}${PREFIX}/lib/libixp.so + @echo installing ixpc to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f ixpc ${DESTDIR}${PREFIX}/bin +@@ -67,8 +75,12 @@ + uninstall: + @echo removing header file from ${DESTDIR}${PREFIX}/include + @rm -f ${DESTDIR}${PREFIX}/include/ixp.h ++ + @echo removing library file from ${DESTDIR}${PREFIX}/lib + @rm -f ${DESTDIR}${PREFIX}/lib/libixp.a ++ @echo removing shared object file from ${DESTDIR}${PREFIX}/lib ++ @rm -f ${DESTDIR}${PREFIX}/lib/libixp.so ++ @rm -f ${DESTDIR}${PREFIX}/lib/libixp.so.${VERSION} + @echo removing ipx client from ${DESTDIR}${PREFIX}/bin + @rm -f ${DESTDIR}${PREFIX}/bin/ixpc + @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 diff --git a/sys-libs/libixp/libixp-0.2-r1.ebuild b/sys-libs/libixp/libixp-0.2-r1.ebuild new file mode 100644 index 000000000000..72a9c29f0b46 --- /dev/null +++ b/sys-libs/libixp/libixp-0.2-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libixp/libixp-0.2-r1.ebuild,v 1.1 2007/01/10 01:18:27 omp Exp $ + +inherit toolchain-funcs + +DESCRIPTION="Standalone client/server 9P library" +HOMEPAGE="http://libs.suckless.org/" +SRC_URI="http://libs.suckless.org/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/libixp-0.2-shared-object.patch" + + sed -i \ + -e "/^PREFIX/s/=.*/= \/usr/" \ + -e "/^CFLAGS/s/= -Os/+=/" \ + -e "/^LDFLAGS/s/=/+=/" \ + -e "/^AR/s/=.*/= $(tc-getAR) cr/" \ + -e "/^CC/s/=.*/= $(tc-getCC)/" \ + -e "/^RANLIB/s/=.*/= $(tc-getRANLIB)/" \ + config.mk || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" +} |