From 453fa155cebf12e6c3f75739b94f0d2da524bfde Mon Sep 17 00:00:00 2001 From: Matt Tennant Date: Wed, 12 Oct 2011 21:40:01 -0700 Subject: [PATCH] Upgraded the ghostscript-gpl, jpeg, jpeg, poppler-data, urw-fonts Portage packages Upgraded app-text/poppler-data to version 0.4.4 on amd64 Upgraded media-libs/jpeg to version 8b on amd64 Upgraded media-fonts/urw-fonts to version 2.4.9 on amd64 Upgraded app-text/ghostscript-gpl to version 9.04-r3 on amd64 Upgraded virtual/jpeg to version 0 on amd64 BUG=None TEST=trybot chromiumos-sdk All of these packages are currently only installed on the host. Change-Id: Ib93c328d30fcd9840dab468ac610e7928f180a74 Reviewed-on: http://gerrit.chromium.org/gerrit/10004 Tested-by: Matt Tennant Reviewed-by: Mike Frysinger Commit-Ready: Matt Tennant --- .../ghostscript-gpl-9.04-r3.ebuild | 207 ++++++++++ .../poppler-data/poppler-data-0.4.4.ebuild | 19 + .../media-fonts/urw-fonts/files/fonts.conf | 362 ++++++++++++++++++ .../urw-fonts/urw-fonts-2.4.9.ebuild | 52 +++ .../media-libs/jpeg/files/Makefile.in.extra | 37 ++ .../jpeg/files/jpeg-7-maxmem_sysconf.patch | 49 +++ .../media-libs/jpeg/jpeg-8b.ebuild | 50 +++ .../portage-stable/virtual/jpeg/jpeg-0.ebuild | 17 + 8 files changed, 793 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r3.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/app-text/poppler-data/poppler-data-0.4.4.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/files/fonts.conf create mode 100644 sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/urw-fonts-2.4.9.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/Makefile.in.extra create mode 100644 sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch create mode 100644 sdk_container/src/third_party/portage-stable/media-libs/jpeg/jpeg-8b.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/virtual/jpeg/jpeg-0.ebuild diff --git a/sdk_container/src/third_party/portage-stable/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r3.ebuild b/sdk_container/src/third_party/portage-stable/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r3.ebuild new file mode 100644 index 0000000000..86be4e7d5c --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r3.ebuild @@ -0,0 +1,207 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r3.ebuild,v 1.5 2011/10/06 17:41:08 jer Exp $ + +EAPI=3 +inherit autotools eutils versionator flag-o-matic + +DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" +HOMEPAGE="http://ghostscript.com/" + +MY_P=${P/-gpl} +GSDJVU_PV=1.5 +PVM=$(get_version_component_range 1-2) +SRC_URI="!bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) ) + mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 + mirror://gentoo/${P}-patchset-3.tar.bz2" + +LICENSE="GPL-3 CPL-1.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd" +IUSE="bindist cups dbus djvu gtk idn jpeg2k static-libs X" + +COMMON_DEPEND="app-text/libpaper + media-libs/fontconfig + media-libs/freetype:2 + media-libs/lcms:0 + >=media-libs/libpng-1.2.42 + >=media-libs/tiff-3.9.2 + >=sys-libs/zlib-1.2.3 + virtual/jpeg + !bindist? ( djvu? ( app-text/djvu ) ) + cups? ( >=net-print/cups-1.3.8 ) + dbus? ( sys-apps/dbus ) + gtk? ( x11-libs/gtk+:2 ) + idn? ( net-dns/libidn ) + jpeg2k? ( media-libs/jasper ) + X? ( x11-libs/libXt x11-libs/libXext )" + +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig" + +RDEPEND="${COMMON_DEPEND} + >=app-text/poppler-data-0.4.4 + >=media-fonts/urw-fonts-2.4.9 + linguas_ja? ( media-fonts/kochi-substitute ) + linguas_ko? ( media-fonts/baekmuk-fonts ) + linguas_zh_CN? ( media-fonts/arphicfonts ) + linguas_zh_TW? ( media-fonts/arphicfonts )" + +S="${WORKDIR}/${MY_P}" + +LANGS="ja ko zh_CN zh_TW" +for X in ${LANGS} ; do + IUSE="${IUSE} linguas_${X}" +done + +pkg_setup() { + if use bindist && use djvu; then + ewarn "You have bindist in your USE, djvu support will NOT be compiled!" + ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." + fi +} + +src_prepare() { + # remove internal copies of various libraries + rm -rf "${S}"/expat + rm -rf "${S}"/freetype + rm -rf "${S}"/jasper + rm -rf "${S}"/jpeg + rm -rf "${S}"/lcms{,2} + rm -rf "${S}"/libpng + rm -rf "${S}"/tiff + rm -rf "${S}"/zlib + # remove internal urw-fonts + rm -rf "${S}"/Resource/Font + # remove internal CMaps (CMaps from poppler-data are used instead) + rm -rf "${S}"/Resource/CMap + + # apply various patches, many borrowed from Fedora + # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" + EPATCH_SOURCE="${WORKDIR}/patches/" + epatch + + if ! use bindist && use djvu ; then + unpack gsdjvu-${GSDJVU_PV}.tar.gz + cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" + cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" + epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" + cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" + cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" + grep -q djvusep "${S}/base/contrib.mak" || \ + cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" + + # install ps2utf8.ps, bug #197818 + sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ + || die "sed failed" + fi + + if ! use gtk ; then + sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" + sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed" + fi + + # search path fix + sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ + -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ + -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ + -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ + -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \ + base/Makefile.in base/*.mak || die "sed failed" + + cd "${S}" + eautoreconf + + cd "${S}/jbig2dec" + eautoreconf + + cd "${S}/ijs" + eautoreconf +} + +src_configure() { + local FONTPATH + for path in \ + /usr/share/fonts/urw-fonts \ + /usr/share/fonts/Type1 \ + /usr/share/fonts \ + /usr/share/poppler/cMap/Adobe-CNS1 \ + /usr/share/poppler/cMap/Adobe-GB1 \ + /usr/share/poppler/cMap/Adobe-Japan1 \ + /usr/share/poppler/cMap/Adobe-Japan2 \ + /usr/share/poppler/cMap/Adobe-Korea1 + do + FONTPATH="$FONTPATH${FONTPATH:+:}$path" + done + + econf \ + --enable-dynamic \ + --enable-freetype \ + --enable-fontconfig \ + --disable-compile-inits \ + --with-drivers=ALL \ + --with-fontpath="$FONTPATH" \ + --with-ijs \ + --with-jbig2dec \ + --with-libpaper \ + --with-system-libtiff \ + --without-luratech \ + $(use_enable cups) \ + $(use_enable dbus) \ + $(use_enable gtk) \ + $(use_with cups install-cups) \ + $(use_with cups pdftoraster) \ + $(use_with idn libidn) \ + $(use_with jpeg2k jasper) \ + $(use_with X x) + + if ! use bindist && use djvu ; then + sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile + fi + + cd "${S}/ijs" + econf \ + --enable-shared \ + $(use_enable static-libs static) +} + +src_compile() { + emake -j1 so all || die "emake failed" + + cd "${S}/ijs" + emake || die "ijs emake failed" +} + +src_install() { + # -j1 -> see bug #356303 + emake -j1 DESTDIR="${D}" install-so install || die "emake install failed" + + if ! use bindist && use djvu ; then + dobin gsdjvu || die "dobin gsdjvu install failed" + fi + + # remove gsc in favor of gambit, bug #253064 + rm -rf "${D}/usr/bin/gsc" + + rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC} + dodoc doc/GS9_Color_Management.pdf || die "dodoc install failed" + + cd "${S}/ijs" + emake DESTDIR="${D}" install || die "emake ijs install failed" + + # rename the original cidfmap to cidfmap.GS + mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die + + # install our own cidfmap to handle CJK fonts + insinto "/usr/share/ghostscript/${PVM}/Resource/Init" + doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed" + doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed" + for X in ${LANGS} ; do + if use linguas_${X} ; then + doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed" + fi + done + + use static-libs || find "${D}" -name '*.la' -delete +} diff --git a/sdk_container/src/third_party/portage-stable/app-text/poppler-data/poppler-data-0.4.4.ebuild b/sdk_container/src/third_party/portage-stable/app-text/poppler-data/poppler-data-0.4.4.ebuild new file mode 100644 index 0000000000..768b3f26db --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-text/poppler-data/poppler-data-0.4.4.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/poppler-data/poppler-data-0.4.4.ebuild,v 1.6 2011/10/06 17:40:18 jer Exp $ + +EAPI="3" + +DESCRIPTION="Data files for poppler to support uncommon encodings without xpdfrc" +HOMEPAGE="http://poppler.freedesktop.org/" +SRC_URI="http://poppler.freedesktop.org/${P}.tar.gz" + +LICENSE="BSD GPL-2 MIT" +KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" +SLOT="0" +IUSE="" + +src_install() { + emake prefix="${EPREFIX}"/usr DESTDIR="${D}" install || die + dodoc README +} diff --git a/sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/files/fonts.conf b/sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/files/fonts.conf new file mode 100644 index 0000000000..0084c09b71 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/files/fonts.conf @@ -0,0 +1,362 @@ + + + + + + + + + /usr/share/fonts + /usr/X11R6/lib/X11/fonts/Type1 + /usr/X11R6/lib/X11/fonts/OTF + ~/.fonts + + + + + + + mono + + + monospace + + + + + + + sans serif + + + sans-serif + + + + + + + sans + + + sans-serif + + + + + + + + Times + Times New Roman + Nimbus Roman No9 L + Luxi Serif + Kochi Mincho + AR PL SungtiL GB + AR PL Mingti2L Big5 + Baekmuk Batang + serif + + + + Helvetica + Arial + Verdana + Nimbus Sans L + Luxi Sans + Kochi Gothic + AR PL KaitiM GB + AR PL KaitiM Big5 + Baekmuk Dotum + SimSun + sans-serif + + + + Courier + Courier New + Andale Mono + Luxi Mono + Nimbus Mono L + NSimSun + monospace + + + + + sans-serif + + + serif + + + monospace + + + sans-serif + + + + + + GulimChe + false + + + + DotumChe + false + + + + BatangChe + false + + + + GungsuhChe + false + + + + ~/.fonts.conf + + + local.conf + + + + Times + Times New Roman + + + Helvetica + Verdana + + + Arial + Verdana + + + Courier + Courier New + + + + + serif + + Nimbus Roman No9 L + Luxi Serif + Kochi Mincho + ZYSong18030 + AR PL SungtiL GB + AR PL Mingti2L Big5 + Baekmuk Batang + Times New Roman + Times + + + + sans-serif + + Luxi Sans + Nimbus Sans L + Helvetica + Kochi Gothic + ZYSong18030 + AR PL SungtiL GB + AR PL Mingti2L Big5 + Baekmuk Gulim + Verdana + Arial + SimSun + + + + monospace + + Luxi Mono + Nimbus Mono L + Kochi Gothic + ZYSong18030 + AR PL SungtiL GB + AR PL Mingti2L Big5 + Baekmuk Gulim + Andale Mono + Courier New + + + + + + + + ja + + + false + + + + + ko + + + false + + + + + zh + + + false + + + + + + + + + roman + + + + roman + + + + + matrix + 1.2 + 01 + + + + + + oblique + + + + + + + 0x0020 + 0x00a0 + 0x00ad + 0x115f + 0x1160 + 0x1680 + 0x2000 + 0x2001 + 0x2002 + 0x2003 + 0x2004 + 0x2005 + 0x2006 + 0x2007 + 0x2008 + 0x2009 + 0x200a + 0x200b + 0x200c + 0x200d + 0x200e + 0x200f + 0x2028 + 0x2029 + 0x202a + 0x202b + 0x202c + 0x202d + 0x202e + 0x202f + 0x205f + 0x2060 + 0x2061 + 0x2062 + 0x2063 + 0x206A + 0x206B + 0x206C + 0x206D + 0x206E + 0x206F + 0x3000 + 0x3164 + 0xfeff + 0xffa0 + 0xfff9 + 0xfffa + 0xfffa + + + + 30 + + + + diff --git a/sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/urw-fonts-2.4.9.ebuild b/sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/urw-fonts-2.4.9.ebuild new file mode 100644 index 0000000000..3e5839301d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/media-fonts/urw-fonts/urw-fonts-2.4.9.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/urw-fonts/urw-fonts-2.4.9.ebuild,v 1.18 2011/08/28 13:35:47 grobian Exp $ + +# At some point URW++ released fonts under GPL license. After that they were took +# and improved by Valek Filippov and this work was somehow related with AFPL... +# At least it can be found on their svn server: +# http://svn.ghostscript.com/ghostscript/trunk/urw-fonts/ + +# Also, some time ago, sources where published on sf.net: +# http://sourceforge.net/projects/gs-fonts/files/ +# At this point this package was published on a nuber of other sites +# (gimp.org/cups.org) and media-fonts/gnu-gs-fonts-std was added to the tree. +# But nobody use that old releases any mover and everybody syncs with +# svn.ghostscript.com. The most recent tag there is: +# http://svn.ghostscript.com/ghostscript/tags/urw-fonts-1.0.7pre44/ + +# But note that version we have is different from upstream tag. This happened +# because we started to use redhat versions and followed their versioning. It's +# hard to say why they use such strange version since they also sync with +# svn.ghostscript.com. Redhat's ChangeLog states: +# Tue Jan 8 23:00:00 2008 Than Ngo 2.4-2 +# - update to 1.0.7pre44 + +inherit eutils rpm font versionator + +MY_PV=$(replace_version_separator 2 -) + +DESCRIPTION="free good quality fonts gpl'd by URW++" +HOMEPAGE="http://www.urwpp.de/" +SRC_URI="mirror://gentoo/${PN}-${MY_PV}.fc13.src.rpm" + +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +RDEPEND="${DEPEND} + !media-fonts/gnu-gs-fonts-std + !media-fonts/gnu-gs-fonts-other" + +S=${WORKDIR} +FONT_S=${S} +FONT_SUFFIX="afm pfb pfm" +DOCS="ChangeLog README*" + +pkg_postinst() { + font_pkg_postinst + elog "If you upgraded from ${PN}-2.1-r2 some fonts will look a bit" + elog "different. Take a look at bug #208990 if interested." +} diff --git a/sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/Makefile.in.extra b/sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/Makefile.in.extra new file mode 100644 index 0000000000..df81038498 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/Makefile.in.extra @@ -0,0 +1,37 @@ +CC = @CC@ +EXEEXT = @EXEEXT@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @CPPFLAGS@ +LDFLAGS = @LDFLAGS@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +datarootdir = @datarootdir@ +mandir = @mandir@ +man1dir = $(mandir)/man1 + +MKDIR_P = @MKDIR_P@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ + +SCRIPTS = exifautotran +PROGRAMS = jpegexiforient$(EXEEXT) + +all: $(SCRIPTS) $(PROGRAMS) + +jpegexiforient$(EXEEXT): jpegexiforient.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< + +clean: + rm -f $(PROGRAMS) *.o + +install: all + $(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) + $(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(bindir) + $(INSTALL_SCRIPT) $(SCRIPTS) $(DESTDIR)$(bindir) + $(INSTALL_DATA) *.1 $(DESTDIR)$(man1dir) + +.PHONY: all clean install diff --git a/sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch b/sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch new file mode 100644 index 0000000000..9ea87d4fa3 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch @@ -0,0 +1,49 @@ +# Make a reasonable guess about memory limits using sysconf(). +# includes 5% slop factor as suggested in documentation. + +--- jpeg-7/jmemansi.c ++++ jpeg-7/jmemansi.c +@@ -12,6 +12,15 @@ + * is shoved onto the user. + */ + ++#include ++ ++#ifdef __FreeBSD__ ++# include ++# include ++# include ++# include ++#endif ++ + #define JPEG_INTERNALS + #include "jinclude.h" + #include "jpeglib.h" +@@ -157,7 +166,26 @@ + GLOBAL(long) + jpeg_mem_init (j_common_ptr cinfo) + { +- return DEFAULT_MAX_MEM; /* default for max_memory_to_use */ ++#ifdef _SC_AVPHYS_PAGES ++ long phys_size; ++ ++ if ((phys_size = sysconf(_SC_AVPHYS_PAGES)) == -1) ++ return DEFAULT_MAX_MEM; /* default for max_memory_to_use */ ++ if ((phys_size *= sysconf(_SC_PAGESIZE)) < 0) ++ return DEFAULT_MAX_MEM; ++ return (long) (phys_size * 0.95); ++#elif defined(HAVE_SYSCTL) && defined(HW_PHYSMEM) ++ /* This works on *bsd and darwin. */ ++ unsigned int physmem; ++ size_t len = sizeof physmem; ++ static int mib[2] = { CTL_HW, HW_PHYSMEM }; ++ ++ if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0 ++ && len == sizeof (physmem)) ++ return (long) (physmem * 0.95); ++#endif ++ ++ return DEFAULT_MAX_MEM; + } + + GLOBAL(void) diff --git a/sdk_container/src/third_party/portage-stable/media-libs/jpeg/jpeg-8b.ebuild b/sdk_container/src/third_party/portage-stable/media-libs/jpeg/jpeg-8b.ebuild new file mode 100644 index 0000000000..92923fc855 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/media-libs/jpeg/jpeg-8b.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/jpeg/jpeg-8b.ebuild,v 1.10 2011/01/06 00:03:56 ssuominen Exp $ + +EAPI="3" + +DEB_PV="7-1" +DEB_PN="libjpeg7" +DEB="${DEB_PN}_${DEB_PV}" + +inherit eutils libtool multilib + +DESCRIPTION="Library to load, handle and manipulate images in the JPEG format" +HOMEPAGE="http://jpegclub.org/ http://www.ijg.org/" +SRC_URI="http://www.ijg.org/files/${PN}src.v${PV}.tar.gz + mirror://debian/pool/main/libj/${DEB_PN}/${DEB}.diff.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${WORKDIR}"/${DEB}.diff + cp "${FILESDIR}"/Makefile.in.extra debian/extra/Makefile.in +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-7-maxmem_sysconf.patch + elibtoolize + # hook the Debian extra dir into the normal jpeg build env + sed -i '/all:/s:$:\n\t./config.status --file debian/extra/Makefile\n\t$(MAKE) -C debian/extra $@:' Makefile.in +} + +src_configure() { + econf \ + --disable-dependency-tracking \ + --enable-shared \ + $(use_enable static-libs static) \ + --enable-maxmem=64 +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc change.log example.c README *.txt + + find "${ED}" -name '*.la' -exec rm -f '{}' + +} diff --git a/sdk_container/src/third_party/portage-stable/virtual/jpeg/jpeg-0.ebuild b/sdk_container/src/third_party/portage-stable/virtual/jpeg/jpeg-0.ebuild new file mode 100644 index 0000000000..020c403f46 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/virtual/jpeg/jpeg-0.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/virtual/jpeg/jpeg-0.ebuild,v 1.5 2011/04/27 18:03:05 grobian Exp $ + +EAPI=2 + +DESCRIPTION="Virtual for jpeg library" +HOMEPAGE="" +SRC_URI="" + +LICENSE="" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +RDEPEND="|| ( media-libs/libjpeg-turbo:0[static-libs?] media-libs/jpeg:0[static-libs?] )" +DEPEND=""