diff options
author | Alexis Ballier <aballier@gentoo.org> | 2008-02-10 10:59:12 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2008-02-10 10:59:12 +0000 |
commit | 7ba485248bd18a35a21d63eaf4303cd80775bc28 (patch) | |
tree | 38bdbbb95869b2def8dad7ae16cf852150236db4 /media-gfx/sam2p | |
parent | x86 stable, bug #208933 (diff) | |
download | gentoo-2-7ba485248bd18a35a21d63eaf4303cd80775bc28.tar.gz gentoo-2-7ba485248bd18a35a21d63eaf4303cd80775bc28.tar.bz2 gentoo-2-7ba485248bd18a35a21d63eaf4303cd80775bc28.zip |
Respect cflags, dont prestrip executables, call gmake for Makedep as GNU make is required, import a patch from bsd ports to make it build on fbsd, keyword ~x86-fbsd; install examples via examples useflag. There still remains that 'gmake Makedep' breaks if used with distcc, I couldn't fix it.
(Portage version: 2.1.4.2)
Diffstat (limited to 'media-gfx/sam2p')
-rw-r--r-- | media-gfx/sam2p/ChangeLog | 14 | ||||
-rw-r--r-- | media-gfx/sam2p/files/sam2p-0.45-cflags.patch | 37 | ||||
-rw-r--r-- | media-gfx/sam2p/files/sam2p-0.45-fbsd.patch | 14 | ||||
-rw-r--r-- | media-gfx/sam2p/files/sam2p-0.45-nostrip.patch | 13 | ||||
-rw-r--r-- | media-gfx/sam2p/sam2p-0.45-r1.ebuild | 46 |
5 files changed, 122 insertions, 2 deletions
diff --git a/media-gfx/sam2p/ChangeLog b/media-gfx/sam2p/ChangeLog index 64a648ba75d2..4b61c7e9fc76 100644 --- a/media-gfx/sam2p/ChangeLog +++ b/media-gfx/sam2p/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for media-gfx/sam2p -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/sam2p/ChangeLog,v 1.21 2007/12/18 19:18:26 jer Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sam2p/ChangeLog,v 1.22 2008/02/10 10:59:11 aballier Exp $ + +*sam2p-0.45-r1 (10 Feb 2008) + + 10 Feb 2008; Alexis Ballier <aballier@gentoo.org> + +files/sam2p-0.45-cflags.patch, +files/sam2p-0.45-fbsd.patch, + +files/sam2p-0.45-nostrip.patch, +sam2p-0.45-r1.ebuild: + Respect cflags, dont prestrip executables, call gmake for Makedep as GNU + make is required, import a patch from bsd ports to make it build on fbsd, + keyword ~x86-fbsd; install examples via examples useflag. There still + remains that 'gmake Makedep' breaks if used with distcc, I couldn't fix it. 18 Dec 2007; Jeroen Roovers <jer@gentoo.org> sam2p-0.45.ebuild: Marked ~hppa (bug #195815). diff --git a/media-gfx/sam2p/files/sam2p-0.45-cflags.patch b/media-gfx/sam2p/files/sam2p-0.45-cflags.patch new file mode 100644 index 000000000000..d6636d5308cf --- /dev/null +++ b/media-gfx/sam2p/files/sam2p-0.45-cflags.patch @@ -0,0 +1,37 @@ +Index: sam2p-0.45/configure.in +=================================================================== +--- sam2p-0.45.orig/configure.in ++++ sam2p-0.45/configure.in +@@ -81,7 +81,7 @@ fi + dnl Checks for programs. + dnl AC_PROG_CC + AC_LANG_CPLUSPLUS +-CXXFLAGS=" " ++#CXXFLAGS=" " + dnl ^^^ set it to non-empty, so AC_PROG_CXX won't include `-g' + CCC="$CCC g++" + dnl ^^^ check g++ before c++ (see acspecific.m4, grep AC_PROG_CXX) +@@ -215,7 +215,7 @@ AC_OUTPUT(Makehelp) + + dnl AC_PTS_RUN_OK([perl -x -S ./ccdep.pl $CXX], [], [AC_MSG_ERROR(cannot compute depends)]) + rm -f Makedep +-AC_PTS_RUN_OK([make Makedep], [], [AC_MSG_ERROR(cannot compute depends)]) ++AC_PTS_RUN_OK([gmake Makedep], [], [AC_MSG_ERROR(cannot compute depends)]) + AC_PTS_OK + echo "configure done. Now you should run: make; make install" + +Index: sam2p-0.45/Makefile +=================================================================== +--- sam2p-0.45.orig/Makefile ++++ sam2p-0.45/Makefile +@@ -49,8 +49,8 @@ IDE_MODES := release debug + IDE_TARGETS_debug := $(patsubst %,%.yes, $(TARGETS)) + IDE_TARGETS_release := $(TARGETS) + +-CXD_assert =$(CXX) -s -O2 +-CXD_no =$(CXX) -s -DNDEBUG -O3 ++CXD_assert =$(CXX) ++CXD_no =$(CXX) -DNDEBUG + # CXD_yes =$(CXX) $(GFLAG) -lefence + CXD_yes =$(CXX) $(GFLAG) + CXD_checker=checkerg++ $(GFLAG) diff --git a/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch b/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch new file mode 100644 index 000000000000..aed13acf08dd --- /dev/null +++ b/media-gfx/sam2p/files/sam2p-0.45-fbsd.patch @@ -0,0 +1,14 @@ +--- gensio.cpp.orig Fri Feb 7 02:24:56 2003 ++++ gensio.cpp Fri Feb 7 02:25:11 2003 +@@ -491,11 +491,7 @@ + /* --- */ + + +-#if HAVE_lstat_in_sys_stat +-# define PTS_lstat lstat +-#else + # define PTS_lstat stat +-#endif + + /** @param fname must start with '/' (dir separator) + * @return true if file successfully created diff --git a/media-gfx/sam2p/files/sam2p-0.45-nostrip.patch b/media-gfx/sam2p/files/sam2p-0.45-nostrip.patch new file mode 100644 index 000000000000..d60a77c36207 --- /dev/null +++ b/media-gfx/sam2p/files/sam2p-0.45-nostrip.patch @@ -0,0 +1,13 @@ +Index: sam2p-0.45/Makefile +=================================================================== +--- sam2p-0.45.orig/Makefile ++++ sam2p-0.45/Makefile +@@ -17,7 +17,7 @@ PERL_BADLANG=x + export PERL_BADLANG + + CXXX=$(CXD_assert) +-LDALL=$(LDXX) -s $(LDFLAGS) $(LIBS) ++LDALL=$(LDXX) $(LDFLAGS) $(LIBS) + ifeq ($(ENABLE_DEBUG), no) + CXXX=$(CXD_no) + endif diff --git a/media-gfx/sam2p/sam2p-0.45-r1.ebuild b/media-gfx/sam2p/sam2p-0.45-r1.ebuild new file mode 100644 index 000000000000..4f29c7894536 --- /dev/null +++ b/media-gfx/sam2p/sam2p-0.45-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sam2p/sam2p-0.45-r1.ebuild,v 1.1 2008/02/10 10:59:11 aballier Exp $ + +inherit toolchain-funcs eutils autotools + +DESCRIPTION="Utility to convert raster images to EPS, PDF and many others" +HOMEPAGE="http://www.inf.bme.hu/~pts/sam2p/" +# The author refuses to distribute +SRC_URI="mirror://gentoo/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="examples gif" +DEPEND="dev-lang/perl" +RDEPEND="virtual/libc" + +RESTRICT="test" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-fbsd.patch" + epatch "${FILESDIR}/${P}-nostrip.patch" + epatch "${FILESDIR}/${P}-cflags.patch" + eautoreconf +} + +src_compile() { + tc-export CXX + # Makedep fails with distcc + if has distcc ${FEATURES}; then + die "disable FEATURES=distcc" + fi + econf --enable-lzw $(use_enable gif) || die "econf failed" + emake -j1 || die "make failed" +} + +src_install() { + dobin sam2p || die "Failed to install sam2p" + dodoc README + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/* + fi +} |