diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild')
-rw-r--r-- | media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild b/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild new file mode 100644 index 000000000000..7672df96d2c9 --- /dev/null +++ b/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +COMMIT="b953f63307c4a83fa4615a4863e3fb250205cd98" + +DESCRIPTION="Utility to convert raster images to EPS, PDF and many others" +HOMEPAGE="https://github.com/pts/sam2p" +SRC_URI="https://github.com/pts/sam2p/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~x64-macos" +IUSE="examples gif" +RESTRICT="test" + +BDEPEND="dev-lang/perl" + +S="${WORKDIR}/${PN}-${COMMIT}" + +PATCHES=( "${FILESDIR}"/${PN}-build-fixes.patch ) + +src_prepare() { + default + + # configure.in files are deprecated + mv configure.{in,ac} || die + + # missing include for memset + sed -i '1s;^;#include <string.h>\n;' pts_defl.c + + # eautoreconf is still needed or you get bad warnings + eautoreconf +} + +src_configure() { + tc-export CC CXX + + econf \ + --enable-lzw \ + $(use_enable gif) +} + +src_compile() { + emake GCC_STRIP= +} + +src_install() { + dobin sam2p + einstalldocs + + if use examples; then + # clear pre-compressed files + rm examples/*.gz || die + + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} |