diff options
author | Steve Dibb <beandog@gentoo.org> | 2010-06-05 16:03:28 +0000 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2010-06-05 16:03:28 +0000 |
commit | 44ef2a063aa42eaf6179da8bc20b8335c4e0843d (patch) | |
tree | d3789415eedb398be885900eb3bdf173e0c56a62 /dev-libs/libebml | |
parent | alpha/arm/ia64/sh stable wrt #313861 (diff) | |
download | gentoo-2-44ef2a063aa42eaf6179da8bc20b8335c4e0843d.tar.gz gentoo-2-44ef2a063aa42eaf6179da8bc20b8335c4e0843d.tar.bz2 gentoo-2-44ef2a063aa42eaf6179da8bc20b8335c4e0843d.zip |
Version bump, bug 321021
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/libebml')
-rw-r--r-- | dev-libs/libebml/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/libebml/files/libebml-0.8.0-makefile-fixup.patch | 102 | ||||
-rw-r--r-- | dev-libs/libebml/libebml-0.8.0.ebuild | 42 |
3 files changed, 151 insertions, 1 deletions
diff --git a/dev-libs/libebml/ChangeLog b/dev-libs/libebml/ChangeLog index 58a693429846..321bfb75fa4a 100644 --- a/dev-libs/libebml/ChangeLog +++ b/dev-libs/libebml/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/libebml # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libebml/ChangeLog,v 1.95 2010/06/05 15:37:14 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libebml/ChangeLog,v 1.96 2010/06/05 16:03:28 beandog Exp $ + +*libebml-0.8.0 (05 Jun 2010) + + 05 Jun 2010; Steve Dibb <beandog@gentoo.org> +libebml-0.8.0.ebuild, + +files/libebml-0.8.0-makefile-fixup.patch: + Version bump, bug 321021 *libebml-1.0.0 (05 Jun 2010) diff --git a/dev-libs/libebml/files/libebml-0.8.0-makefile-fixup.patch b/dev-libs/libebml/files/libebml-0.8.0-makefile-fixup.patch new file mode 100644 index 000000000000..4c3efdb4ae32 --- /dev/null +++ b/dev-libs/libebml/files/libebml-0.8.0-makefile-fixup.patch @@ -0,0 +1,102 @@ +--- make/linux/Makefile.orig 2010-06-05 09:38:38.000000000 -0600 ++++ make/linux/Makefile 2010-06-05 10:01:26.000000000 -0600 +@@ -50,6 +50,8 @@ + LIBRARY=libebml.a
+ LIBRARY_SO=libebml.so
+ LIBRARY_SO_VER=libebml.so.0
++LIBRARY_DYLIB=libebml.dylib
++LIBRARY_DYLIB_VER=libebml.0.dylib
+
+ # source-files
+ sources:=$(wildcard ${SRC_DIR}*$(EXTENSION))
+@@ -66,7 +68,7 @@ + DEPENDFLAGS = $(CXXFLAGS) $(INCLUDE)
+
+ ifeq (Darwin,$(shell uname -s))
+-all: staticlib
++all: staticlib macholib
+ else
+ all: staticlib sharedlib
+ endif
+@@ -75,8 +77,10 @@ +
+ sharedlib: $(LIBRARY_SO)
+
++macholib: $(LIBRARY_DYLIB)
++
+ lib:
+- @echo "Use the 'staticlib', 'sharedlib' or 'all' targets."
++ @echo "Use the 'staticlib', 'sharedlib', 'macholib' or 'all' targets."
+ @false
+
+ # Build rules
+@@ -91,15 +95,22 @@ + $(RANLIB) $@
+
+ $(LIBRARY_SO): $(objects_so)
+- $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so)
++ $(CXX) $(LDFLAGS) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so) $(LIBS)
+ rm -f $(LIBRARY_SO)
+ ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO)
+
++$(LIBRARY_DYLIB): $(objects_so)
++ $(CXX) $(LDFLAGS) -dynamiclib -install_name $(libdir)/$(LIBRARY_DYLIB_VER) -o $(LIBRARY_DYLIB_VER) $(objects_so) $(LIBS)
++ rm -f $(LIBRARY_DYLIB)
++ ln -s $(LIBRARY_DYLIB_VER) $(LIBRARY_DYLIB)
++
+ clean:
+ rm -f $(objects) $(objects_so)
+ rm -f $(LIBRARY)
+ rm -f $(LIBRARY_SO)
+ rm -f $(LIBRARY_SO_VER)
++ rm -f $(LIBRARY_DYLIB)
++ rm -f $(LIBRARY_DYLIB_VER)
+ rm -f CORE
+
+ distclean dist-clean: clean
+@@ -116,30 +127,34 @@ + done
+
+ ifeq (Darwin,$(shell uname -s))
+-install: install_staticlib install_headers
++install: install_staticlib install_macholib install_headers
+ else
+ install: install_staticlib install_sharedlib install_headers
+ endif
+
+ install_headers:
+- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)
++ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)
+ for i in $(INCLUDE_DIR)/*.h; do \
+- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir) ; \
++ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir) ; \
+ done
+- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)/c
++ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)/c
+ for i in $(INCLUDE_DIR)/c/*.h; do \
+- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir)/c ; \
++ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir)/c ; \
+ done
+
+ install_staticlib: $(LIBRARY)
+- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
+- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(libdir)
++ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
++ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(DESTDIR)$(libdir)
+
+ install_sharedlib: $(LIBRARY_SO)
+- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
+- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir)
+- ln -fs $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO)
+-
++ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
++ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)
++ ln -fs $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)/$(LIBRARY_SO)
++
++install_macholib: $(LIBRARY_DYLIB)
++ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
++ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_DYLIB_VER) $(DESTDIR)$(libdir)
++ ln -fs $(LIBRARY_DYLIB_VER) $(DESTDIR)$(libdir)/$(LIBRARY_DYLIB)
+
+ ifneq ($(wildcard .depend),)
+ include .depend
diff --git a/dev-libs/libebml/libebml-0.8.0.ebuild b/dev-libs/libebml/libebml-0.8.0.ebuild new file mode 100644 index 000000000000..f73c1d9b4591 --- /dev/null +++ b/dev-libs/libebml/libebml-0.8.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libebml/libebml-0.8.0.ebuild,v 1.1 2010/06/05 16:03:28 beandog Exp $ + +EAPI=2 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Extensible binary format library (kinda like XML)" +HOMEPAGE="http://www.matroska.org/" +SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +S="${S}/make/linux" + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile-fixup.patch +} + +src_compile() { + # keep the prefix in here to make sure the binary is built with a correct + # install_name on Darwin + emake \ + prefix="${EPREFIX}/usr" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + || die "emake failed" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + prefix="${EPREFIX}/usr" \ + libdir="${EPREFIX}/usr/$(get_libdir)" \ + install || die "emake install failed" + + dodoc "${WORKDIR}/${P}/ChangeLog" +} |