7 |
7 |
|
8 |
8 |
MY_P=${P/graphicsm/GraphicsM}
|
9 |
9 |
DESCRIPTION="Collection of tools and libraries for many image formats"
|
10 |
|
HOMEPAGE="http://www.graphicsmagick.org/ https://hg.osdn.net/view/graphicsmagick/GM"
|
|
10 |
HOMEPAGE="http://www.graphicsmagick.org/ https://foss.heptapod.net/graphicsmagick/graphicsmagick"
|
11 |
11 |
|
12 |
12 |
if [[ ${PV} == 9999 ]] ; then
|
13 |
|
EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code"
|
|
13 |
EHG_REPO_URI="https://foss.heptapod.net/${PN}/${PN}"
|
14 |
14 |
inherit mercurial
|
15 |
15 |
else
|
16 |
16 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bobfriesenhahn.asc
|
17 |
17 |
inherit verify-sig
|
18 |
18 |
|
19 |
|
SRC_URI="https://downloads.sourceforge.net/${PN}/${MY_P}.tar.xz"
|
20 |
|
SRC_URI+=" verify-sig? ( https://downloads.sourceforge.net/${PN}/${MY_P}.tar.xz.asc )"
|
|
19 |
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}-history/$(ver_cut 1-2)/${MY_P}.tar.xz"
|
|
20 |
SRC_URI+=" verify-sig? ( https://downloads.sourceforge.net/project/${PN}/${PN}-history/$(ver_cut 1-2)/${MY_P}.tar.xz.asc )"
|
21 |
21 |
S="${WORKDIR}/${MY_P}"
|
22 |
22 |
|
23 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
|
23 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
24 |
24 |
|
25 |
25 |
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-bobfriesenhahn )"
|
26 |
26 |
fi
|
27 |
27 |
|
28 |
28 |
LICENSE="MIT"
|
29 |
29 |
SLOT="0/${PV%.*}"
|
30 |
|
IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl lcms lzma"
|
31 |
|
IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff truetype"
|
32 |
|
IUSE+=" webp wmf X zlib zstd"
|
|
30 |
IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpeg2k jpegxl lcms lzma"
|
|
31 |
IUSE+=" openmp perl postscript png q16 q32 static-libs tcmalloc tiff truetype"
|
|
32 |
IUSE+=" webp wmf X zip zlib zstd"
|
33 |
33 |
|
34 |
34 |
RDEPEND="
|
35 |
35 |
dev-libs/libltdl
|
... | ... | |
39 |
39 |
imagemagick? ( !media-gfx/imagemagick )
|
40 |
40 |
jbig? ( media-libs/jbigkit )
|
41 |
41 |
jpeg? ( media-libs/libjpeg-turbo:= )
|
|
42 |
jpeg2k? ( media-libs/jasper:= )
|
42 |
43 |
jpegxl? ( media-libs/libjxl:= )
|
43 |
44 |
lcms? ( media-libs/lcms:2 )
|
44 |
45 |
lzma? ( app-arch/xz-utils )
|
45 |
46 |
perl? ( dev-lang/perl:= )
|
|
47 |
postscript? ( app-text/ghostscript-gpl:= )
|
46 |
48 |
png? ( media-libs/libpng:= )
|
47 |
|
postscript? ( app-text/ghostscript-gpl )
|
48 |
|
svg? ( dev-libs/libxml2 )
|
49 |
49 |
tcmalloc? ( dev-util/google-perftools:= )
|
50 |
50 |
tiff? ( media-libs/tiff:= )
|
51 |
51 |
truetype? (
|
... | ... | |
59 |
59 |
x11-libs/libX11
|
60 |
60 |
x11-libs/libXext
|
61 |
61 |
)
|
|
62 |
zip? ( dev-libs/libzip:= )
|
62 |
63 |
zlib? ( sys-libs/zlib )
|
63 |
64 |
zstd? ( app-arch/zstd:= )
|
64 |
65 |
"
|
... | ... | |
68 |
69 |
PATCHES=(
|
69 |
70 |
"${FILESDIR}"/${PN}-1.3.41-flags.patch
|
70 |
71 |
"${FILESDIR}"/${PN}-1.3.41-perl.patch
|
71 |
|
"${FILESDIR}"/${PN}-1.3.42-autoconf-2.72-perl-lfs.patch
|
72 |
72 |
)
|
73 |
73 |
|
74 |
74 |
pkg_pretend() {
|
... | ... | |
104 |
104 |
--with-quantum-depth=${depth}
|
105 |
105 |
--without-frozenpaths
|
106 |
106 |
$(use_with cxx magick-plus-plus)
|
|
107 |
$(use_with postscript gs)
|
107 |
108 |
$(use_with heif)
|
108 |
109 |
$(use_with jpegxl jxl)
|
109 |
110 |
$(use_with perl)
|
110 |
111 |
--with-perl-options=INSTALLDIRS=vendor
|
111 |
112 |
$(use_with bzip2 bzlib)
|
112 |
|
$(use_with postscript dps)
|
113 |
113 |
$(use_with fpx)
|
114 |
114 |
$(use_with jbig)
|
115 |
115 |
$(use_with webp)
|
116 |
116 |
$(use_with jpeg)
|
117 |
|
# Needs last-rited/unpackaged jasper
|
118 |
|
--without-jp2
|
|
117 |
$(use_with jpeg2k jp2)
|
119 |
118 |
$(use_with lcms lcms2)
|
120 |
119 |
$(use_with lzma)
|
121 |
120 |
$(use_with png)
|
... | ... | |
127 |
126 |
--with-fontpath="${EPREFIX}"/usr/share/fonts
|
128 |
127 |
--with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
|
129 |
128 |
--with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts
|
130 |
|
$(use_with svg xml)
|
|
129 |
$(use_with zip libzip)
|
131 |
130 |
$(use_with zlib)
|
132 |
131 |
$(use_with zstd)
|
133 |
132 |
$(use_with X x)
|