diff options
author | Julian Ospald <hasufell@gentoo.org> | 2014-04-22 13:09:39 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2014-04-22 13:09:39 +0000 |
commit | 043c0e0ebbf26c86f203bfbc1564616f219ee752 (patch) | |
tree | a59e792bda5e9fd41d78a5093746894d714ba6f5 /media-gfx/xpaint | |
parent | Initial version. (diff) | |
download | gentoo-2-043c0e0ebbf26c86f203bfbc1564616f219ee752.tar.gz gentoo-2-043c0e0ebbf26c86f203bfbc1564616f219ee752.tar.bz2 gentoo-2-043c0e0ebbf26c86f203bfbc1564616f219ee752.zip |
version bump
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'media-gfx/xpaint')
-rw-r--r-- | media-gfx/xpaint/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch | 67 | ||||
-rw-r--r-- | media-gfx/xpaint/xpaint-2.9.10.2.ebuild | 82 |
3 files changed, 156 insertions, 1 deletions
diff --git a/media-gfx/xpaint/ChangeLog b/media-gfx/xpaint/ChangeLog index 9f88180ad0f0..c33a6bc1dc1c 100644 --- a/media-gfx/xpaint/ChangeLog +++ b/media-gfx/xpaint/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/xpaint # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xpaint/ChangeLog,v 1.21 2014/03/04 03:10:04 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xpaint/ChangeLog,v 1.22 2014/04/22 13:09:39 hasufell Exp $ + +*xpaint-2.9.10.2 (22 Apr 2014) + + 22 Apr 2014; Julian Ospald <hasufell@gentoo.org> +xpaint-2.9.10.2.ebuild, + +files/xpaint-2.9.10.2-QA2.patch: + version bump *xpaint-2.9.10 (04 Mar 2014) diff --git a/media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch b/media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch new file mode 100644 index 000000000000..9179585974c2 --- /dev/null +++ b/media-gfx/xpaint/files/xpaint-2.9.10.2-QA2.patch @@ -0,0 +1,67 @@ +From 08bdf5f5d0c64384b2be16bd8ac68244675388d5 Mon Sep 17 00:00:00 2001 +From: hasufell <hasufell@gentoo.org> +Date: Sun, 6 Oct 2013 21:13:51 +0200 +Subject: [PATCH] respect CFLAGS + +--- + Makefile.am | 2 +- + configure.ac | 2 +- + rw/Makefile.am | 2 +- + rw/configure.ac | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 4cf1753..414597f 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -26,7 +26,7 @@ EXTERN_VIEWER = display + ## -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \ + ## -DFUNCPROTO=15 -DNARROWPROTO + +-ARCH_DEFINES = -g -O2 -fno-strict-aliasing -fPIC ++ARCH_DEFINES = -fno-strict-aliasing -fPIC + + ## + ## Specific xpaint options +diff --git a/configure.ac b/configure.ac +index e058529..3979075 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -29,7 +29,7 @@ AC_TYPE_UINT16_T + AC_TYPE_UINT32_T + AC_TYPE_UINT64_T + +-CFLAGS="-I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft" ++CFLAGS="$CFLAGS -I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft" + LIBS="$LIBS -lm" + echo "VERSION = $VERSION" > .version + +diff --git a/rw/Makefile.am b/rw/Makefile.am +index d91d5d5..2f50253 100644 +--- a/rw/Makefile.am ++++ b/rw/Makefile.am +@@ -10,7 +10,7 @@ SHAREDIR = $(prefix)/share/xpaint + ## -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \ + ## -DFUNCPROTO=15 -DNARROWPROTO + +-ARCH_DEFINES = -g -O2 -fno-strict-aliasing -fPIC ++ARCH_DEFINES = -fno-strict-aliasing -fPIC + + ## + ## Specific xpaint options +diff --git a/rw/configure.ac b/rw/configure.ac +index fb4f3d4..d9c7601 100644 +--- a/rw/configure.ac ++++ b/rw/configure.ac +@@ -29,7 +29,7 @@ AC_TYPE_UINT16_T + AC_TYPE_UINT32_T + AC_TYPE_UINT64_T + +-CFLAGS="-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft" ++CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -I/usr/include -I/usr/include/X11 -I/usr/include/X11/Xaw3dxft" + LIBS="$LIBS -lm" + + dnl check X11 +-- +1.8.3.2 + diff --git a/media-gfx/xpaint/xpaint-2.9.10.2.ebuild b/media-gfx/xpaint/xpaint-2.9.10.2.ebuild new file mode 100644 index 000000000000..71c89fdbec79 --- /dev/null +++ b/media-gfx/xpaint/xpaint-2.9.10.2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xpaint/xpaint-2.9.10.2.ebuild,v 1.1 2014/04/22 13:09:39 hasufell Exp $ + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="Image editor with tiff, jpeg and png support" +HOMEPAGE="http://sf-xpaint.sourceforge.net/" +SRC_URI="mirror://sourceforge/sf-xpaint/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="jpeg2k pgf tiff" + +RDEPEND=" + media-libs/fontconfig + media-libs/freetype + media-libs/libpng:0 + x11-libs/libICE + x11-libs/libX11 + >=x11-libs/libXaw3dXft-1.6.2c + x11-libs/libXext + x11-libs/libXft + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt + sys-libs/zlib + virtual/jpeg + jpeg2k? ( media-libs/openjpeg:0 ) + pgf? ( media-libs/libpgf ) + tiff? ( media-libs/tiff:0 )" +DEPEND="${RDEPEND} + sys-devel/flex + sys-devel/bison + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.9.9.4-{QA1,submake,parallel-make}.patch \ + "${FILESDIR}"/${PN}-2.9.10.2-QA2.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable tiff) \ + $(use_enable jpeg2k libopenjpeg) +} + +src_compile() { + # clean up + emake clean + emake -C util clean + + # parallel make still fails sometimes + emake substads + emake xpaint.1 + + default + emake \ + WITH_PGF="$(usex pgf "yes" "no")" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + -C util +} + +src_install() { + default + emake \ + WITH_PGF="$(usex pgf "yes" "no")" \ + DESTDIR="${ED}" \ + -C util install +} + +pkg_postinst() { + elog "optional dependencies:" + elog " app-text/gv (external viewer for PostScript output)" + elog " media-gfx/imagemagick (external viewer for pixel graphics)" + elog " net-print/cups (printing)" +} |