Diff libpaper-1.1.28 with a libpaper-2.0.4

/usr/portage/app-text/libpaper/libpaper-2.0.4.ebuild 2023-10-09 14:52:28.884368335 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
5

  
6
inherit autotools multilib-minimal
4
EAPI=8
7 5

  
8 6
DESCRIPTION="Library for handling paper characteristics"
9
HOMEPAGE="https://packages.debian.org/unstable/source/libpaper"
10
SRC_URI="mirror://debian/pool/main/libp/libpaper/${P/-/_}.tar.gz"
7
HOMEPAGE="https://github.com/rrthomas/libpaper"
8
SRC_URI="https://github.com/rrthomas/libpaper/releases/download/v${PV}/${P}.tar.gz"
11 9

  
12
LICENSE="GPL-2"
13
SLOT="0"
10
# See README.
11
# paperspecs is public-domain
12
LICENSE="LGPL-2.1+ GPL-3+ public-domain"
13
SLOT="0/$(ver_cut 1)"
14 14
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
15 15

  
16
DOCS=( README ChangeLog debian/changelog )
16
BDEPEND="sys-apps/help2man"
17 17

  
18
src_prepare() {
19
	sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
20
	eautoreconf
21
	default
22
}
18
# False positive (runs within a conditional)
19
QA_AM_MAINTAINER_MODE=".*help2man.*"
23 20

  
24
multilib_src_configure() {
25
	ECONF_SOURCE="${S}"	econf \
26
		--disable-static
21
src_configure() {
22
	econf --enable-relocatable
27 23
}
28 24

  
29
multilib_src_install_all() {
30
	find "${ED}" -name '*.la' -exec rm -f {} +
31

  
32
	einstalldocs
25
src_install() {
26
	default
33 27

  
34
	dodir /etc
35
	(paperconf 2>/dev/null || echo a4) > "${ED}"/etc/papersize \
36
		|| die "papersize config failed"
37

  
38
	if ! has_version app-text/libpaper ; then
39
		echo
40
		elog "run e.g. \"paperconfig -p letter\" as root to use letter-pagesizes"
41
		echo
42
	fi
28
	find "${ED}" -type f -name '*.la' -delete || die
43 29
}
Thank you!