| 1 |
|
# Copyright 1999-2024 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
|
inherit autotools
|
|
6 |
PYTHON_COMPAT=( python3_{11..14} )
|
|
7 |
|
|
8 |
inherit edo meson python-r1
|
| 7 |
9 |
|
| 8 |
10 |
DESCRIPTION="Unicode-aware text to PostScript converter"
|
| 9 |
|
HOMEPAGE="http://paps.sourceforge.net/"
|
| 10 |
|
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
|
|
11 |
HOMEPAGE="https://github.com/dov/paps"
|
|
12 |
SRC_URI="https://github.com/dov/paps/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
| 11 |
13 |
|
| 12 |
14 |
LICENSE="LGPL-2"
|
| 13 |
15 |
SLOT="0"
|
| 14 |
|
KEYWORDS="amd64 x86"
|
|
16 |
KEYWORDS="~amd64 ~x86"
|
|
17 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
| 15 |
18 |
|
| 16 |
|
RDEPEND="x11-libs/pango"
|
|
19 |
RDEPEND="
|
|
20 |
${PYTHON_DEPS}
|
|
21 |
dev-libs/glib:2
|
|
22 |
dev-libs/libfmt:=
|
|
23 |
x11-libs/cairo
|
|
24 |
x11-libs/pango
|
|
25 |
"
|
| 17 |
26 |
DEPEND="${RDEPEND}"
|
| 18 |
27 |
BDEPEND="virtual/pkgconfig"
|
| 19 |
28 |
|
| 20 |
29 |
PATCHES=(
|
| 21 |
|
"${FILESDIR}"/${P}-fix-as-needed-build.patch
|
| 22 |
|
"${FILESDIR}"/${P}-fix-doxygen-acinclude.patch
|
| 23 |
|
"${FILESDIR}"/${P}-fix-freetype-include.patch
|
| 24 |
|
"${FILESDIR}"/${P}-fix-empty-file.patch
|
|
30 |
# patches merged in upstream, to be removed for the next version.
|
|
31 |
"${FILESDIR}"/${P}-fix_glib.patch
|
|
32 |
"${FILESDIR}"/${P}-fix_unused_results.patch
|
|
33 |
"${FILESDIR}"/${P}-fix_fmt11.2.patch
|
| 25 |
34 |
)
|
| 26 |
35 |
|
| 27 |
36 |
src_prepare() {
|
| 28 |
37 |
default
|
| 29 |
38 |
|
| 30 |
|
mv configure.in configure.ac || die
|
|
39 |
# even if it can be changed with --pango-outlang-path, fix the default value
|
|
40 |
sed -e "/^pango_outlang_path =/s/\/usr\/local/${EPREFIX}\/usr/" \
|
|
41 |
-i scripts/src-to-paps || die
|
|
42 |
}
|
| 31 |
43 |
|
| 32 |
|
eautoreconf
|
|
44 |
src_test() {
|
|
45 |
edo "${BUILD_DIR}"/src/paps examples/small-hello.utf8 -o "${T}"/test-out.ps
|
| 33 |
46 |
}
|
| 34 |
47 |
|
| 35 |
48 |
src_install() {
|
| 36 |
|
dobin src/paps
|
| 37 |
|
doman src/paps.1
|
| 38 |
|
dodoc AUTHORS ChangeLog NEWS README TODO
|
|
49 |
meson_src_install
|
|
50 |
|
|
51 |
python_foreach_impl python_doscript scripts/src-to-paps
|
| 39 |
52 |
}
|