Lines 18-24
Link Here
|
18 |
LICENSE="GPL-3 CPL-1.0" |
18 |
LICENSE="GPL-3 CPL-1.0" |
19 |
SLOT="0" |
19 |
SLOT="0" |
20 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
20 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
21 |
IUSE="bindist cups dbus djvu gtk idn jpeg2k X" |
21 |
IUSE="bindist cups dbus djvu gtk idn jbig jpeg2k X" |
22 |
|
22 |
|
23 |
COMMON_DEPEND="app-text/libpaper |
23 |
COMMON_DEPEND="app-text/libpaper |
24 |
media-libs/fontconfig |
24 |
media-libs/fontconfig |
Lines 34-39
Link Here
|
34 |
gtk? ( x11-libs/gtk+:2 ) |
34 |
gtk? ( x11-libs/gtk+:2 ) |
35 |
idn? ( net-dns/libidn ) |
35 |
idn? ( net-dns/libidn ) |
36 |
jpeg2k? ( media-libs/jasper ) |
36 |
jpeg2k? ( media-libs/jasper ) |
|
|
37 |
jbig? ( >=media-libs/jbig2dec-0.11 ) |
37 |
X? ( x11-libs/libXt x11-libs/libXext )" |
38 |
X? ( x11-libs/libXt x11-libs/libXext )" |
38 |
|
39 |
|
39 |
DEPEND="${COMMON_DEPEND} |
40 |
DEPEND="${COMMON_DEPEND} |
Lines 67-72
Link Here
|
67 |
rm -rf "${S}/expat" |
68 |
rm -rf "${S}/expat" |
68 |
rm -rf "${S}/freetype" |
69 |
rm -rf "${S}/freetype" |
69 |
rm -rf "${S}/jasper" |
70 |
rm -rf "${S}/jasper" |
|
|
71 |
rm -rf "${S}/jbig2dec" |
70 |
rm -rf "${S}/jpeg" |
72 |
rm -rf "${S}/jpeg" |
71 |
rm -rf "${S}/lcms" |
73 |
rm -rf "${S}/lcms" |
72 |
rm -rf "${S}/libpng" |
74 |
rm -rf "${S}/libpng" |
Lines 83-88
Link Here
|
83 |
# apply various patches, many borrowed from Fedora |
85 |
# apply various patches, many borrowed from Fedora |
84 |
# http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git |
86 |
# http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git |
85 |
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" |
87 |
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" |
|
|
88 |
EPATCH_EXCLUDE="ghostscript-gpl-8.71-jbig2dec-nullderef.patch \ |
89 |
ghostscript-gpl-8.71-jbig2-image-refcount.patch.patch" |
86 |
EPATCH_SOURCE="${WORKDIR}/patches/" |
90 |
EPATCH_SOURCE="${WORKDIR}/patches/" |
87 |
epatch |
91 |
epatch |
88 |
|
92 |
|
Lines 117-125
Link Here
|
117 |
cd "${S}" |
121 |
cd "${S}" |
118 |
eautoreconf |
122 |
eautoreconf |
119 |
|
123 |
|
120 |
cd "${S}/jbig2dec" |
|
|
121 |
eautoreconf |
122 |
|
123 |
cd "${S}/ijs" |
124 |
cd "${S}/ijs" |
124 |
eautoreconf |
125 |
eautoreconf |
125 |
} |
126 |
} |
Lines 146-151
Link Here
|
146 |
$(use_with cups pdftoraster) \ |
147 |
$(use_with cups pdftoraster) \ |
147 |
$(use_with idn libidn) \ |
148 |
$(use_with idn libidn) \ |
148 |
$(use_with jpeg2k jasper) \ |
149 |
$(use_with jpeg2k jasper) \ |
|
|
150 |
$(use_with jbig jbig2dec) \ |
149 |
$(use_with X x) \ |
151 |
$(use_with X x) \ |
150 |
--disable-compile-inits \ |
152 |
--disable-compile-inits \ |
151 |
--enable-dynamic \ |
153 |
--enable-dynamic \ |
Lines 154-160
Link Here
|
154 |
--with-drivers=ALL \ |
156 |
--with-drivers=ALL \ |
155 |
--with-fontpath="$FONTPATH" \ |
157 |
--with-fontpath="$FONTPATH" \ |
156 |
--with-ijs \ |
158 |
--with-ijs \ |
157 |
--with-jbig2dec \ |
|
|
158 |
--with-libpaper \ |
159 |
--with-libpaper \ |
159 |
--with-system-libtiff |
160 |
--with-system-libtiff |
160 |
|
161 |
|