Сравнение gerbv-2.7.0 с gerbv-2.13.0

/usr/portage/sci-electronics/gerbv/gerbv-2.13.0.ebuild 2026-09-16 20:03:04.929149551 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2026 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 xdg
6
inherit cmake xdg
7 7

  
8 8
DESCRIPTION="A RS-274X (Gerber) and NC drill (Excellon) file viewer"
9
HOMEPAGE="http://gerbv.geda-project.org/"
10
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
9
HOMEPAGE="https://gerbv.github.io/"
10
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
11 11

  
12 12
LICENSE="GPL-2"
13 13
SLOT="0"
14
KEYWORDS="amd64 ~ppc ~x86"
14
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15 15
IUSE="doc examples unit-mm"
16 16
RESTRICT="test"
17 17

  
18 18
RDEPEND="
19
	sys-devel/gettext
19 20
	x11-libs/gtk+:2
20
	x11-libs/cairo"
21
	x11-libs/cairo
22
"
21 23
DEPEND="${RDEPEND}"
22 24
BDEPEND="virtual/pkgconfig"
23 25

  
24
PATCHES=( "${FILESDIR}"/${PN}-2.7.0-fno-common-gcc10.patch )
26
PATCHES=(
27
	"${FILESDIR}"/${PN}-2.13.0-no_compress_man.patch
28
	"${FILESDIR}"/${PN}-2.13.0-main_c_glib_strncasecmp.patch
29
	"${FILESDIR}"/${PN}-2.13.0-cmake_canonicalize_file_name.patch
30
	"${FILESDIR}"/${PN}-2.13.0-release_version.patch
31
)
25 32

  
26 33
src_configure() {
27
	econf \
28
		--disable-static \
29
		--disable-update-desktop-database \
30
		$(use_enable unit-mm)
34
	# We're manually installing examples if desired
35
	sed -i 's/install(DIRECTORY example/#install(DIRECTORY example/' "${S}"/CMakeLists.txt || die
36
	cmake_src_configure
31 37
}
32 38

  
33 39
src_install() {
34
	rm README-{git,release,win32}.txt || die
35
	default
40
	rm README-{git,release}.txt || die
41
	cmake_src_install
42
	rm "${ED}/usr/$(get_libdir)/libgerbv.a" || die
43

  
36 44
	dodoc CONTRIBUTORS HACKING
37 45

  
38 46
	rm doc/Doxyfile.nopreprocessing || die
......
45 53
		find example -name 'Makefile*' -delete || die
46 54
		dodoc -r example/.
47 55
	fi
48

  
49
	# no static archives
50
	find "${D}" -name '*.la' -delete || die
51 56
}
Спасибо!