blob: 797ac7407d610f7d70c6fc0238ded3c2ec16588b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature xdg
DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window"
HOMEPAGE="http://mcj.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/project/mcj/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
COMMON_DEPEND="
app-text/ghostscript-gpl:=
>=media-gfx/transfig-3.2.5-r1
media-libs/libjpeg-turbo:=
media-libs/libpng:=
media-libs/tiff:=
x11-libs/libX11
x11-libs/libXaw3d[unicode(+)]
x11-libs/libXpm
x11-libs/libXt
"
DEPEND="${COMMON_DEPEND}
x11-base/xorg-proto
"
RDEPEND="${COMMON_DEPEND}
media-fonts/font-misc-misc
media-fonts/urw-fonts
"
PATCHES=(
"${FILESDIR}/${PN}-3.2.6a-urwfonts.patch"
"${FILESDIR}/${PN}-3.2.6a-solaris.patch"
"${FILESDIR}/${PN}-3.2.8b-app-defaults.patch"
"${FILESDIR}/${PN}-3.2.8b-Fix-build-with-flto.patch"
)
src_configure() {
local myeconfargs=(
--enable-i18n
--htmldir="${EPREFIX}/usr/share/doc/${PF}" # it expects docdir...
)
econf "${myeconfargs[@]}"
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "GIF support" media-libs/netpbm virtual/imagemagick-tools
}
|