Diff nkf-2.1.5-r1 with a nkf-2.1.5-r2

/usr/portage/app-i18n/nkf/nkf-2.1.5-r2.ebuild 2025-07-17 18:21:10.383185716 +0300
1 1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="8"
4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..12} )
7
DISTUTILS_USE_PEP517="setuptools"
8
DISTUTILS_OPTIONAL="1"
9
DISTUTILS_EXT="1"
6
PYTHON_COMPAT=( python3_{11..14} )
7
DISTUTILS_USE_PEP517=pdm-backend
8
DISTUTILS_OPTIONAL=1
9
DISTUTILS_EXT=1
10 10

  
11 11
inherit distutils-r1 perl-module toolchain-funcs vcs-snapshot
12 12

  
13
PY_P="python-${PN}-0.2.0_p20191121"
14
PY_COMMIT="c2c6724714b66f295137c8818dae4c09fc09e0a3"
13
PY_P="python-${PN}-1.0.4"
14
PY_COMMIT="6dcc796ce4fc0123fc1f7377583c56be8ff29a81"
15 15

  
16 16
DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
17 17
HOMEPAGE="https://osdn.net/projects/nkf/"
18
SRC_URI="mirror://sourceforge.jp/${PN}/70406/${P}.tar.gz
19
	python? ( https://github.com/fumiyas/python-${PN}/archive/${PY_COMMIT}.tar.gz -> ${PY_P}.tar.gz )"
18
SRC_URI="
19
	mirror://sourceforge.jp/${PN}/70406/${P}.tar.gz
20
	python? ( https://github.com/fumiyas/python-${PN}/archive/${PY_COMMIT}.tar.gz -> ${PY_P}.tar.gz )
21
"
20 22

  
21 23
LICENSE="ZLIB python? ( BSD )"
22 24
SLOT="0"
......
26 28

  
27 29
RDEPEND="python? ( ${PYTHON_DEPS} )"
28 30
DEPEND="${RDEPEND}"
29
BDEPEND="python? (
31
BDEPEND="
32
	python? (
30 33
		${PYTHON_DEPS}
31 34
		${DISTUTILS_DEPS}
32
	)"
35
	)
36
"
37

  
38
export PDM_BUILD_SCM_VERSION=${PV}
39

  
40
distutils_enable_tests pytest
33 41

  
34 42
src_unpack() {
35 43
	use python && vcs-snapshot_src_unpack || default
......
39 47
	sed -i \
40 48
		-e "/^CFLAGS/{ s/-g -O2//; s/=/+=/; }" \
41 49
		-e "/ -o ${PN}/s/\(-o \)/\$(LDFLAGS) \1/" \
42
		Makefile
50
		Makefile || die
43 51
	if use python; then
44 52
		mv "${WORKDIR}"/${PY_P} NKF.python || die
45
		sed -i "s/-/_/g" NKF.python/setup.cfg
46 53

  
47
		eapply "${FILESDIR}"/${PN}-python.patch
48
		eapply "${FILESDIR}"/${P}-python-ssize_t.patch
49
		eapply "${FILESDIR}"/${P}-python-ssize_t-deux.patch
54
		eapply "${FILESDIR}"/${P}-python.patch
50 55

  
51 56
		cd NKF.python || die
52 57
		distutils-r1_src_prepare
53 58
		cd - >/dev/null || die
54 59
	fi
55

  
56 60
	default
57 61
}
58 62

  
......
91 95
		perl-module_src_test
92 96
		cd - >/dev/null || die
93 97
	fi
98
	if use python; then
99
		cd NKF.python || die
100
		distutils-r1_src_test
101
		cd - >/dev/null || die
102
	fi
94 103
}
95 104

  
96 105
src_install() {
Thank you!