Сравнение vlorb-1.2 с elinks-0.17.1.1

/usr/portage/www-client/elinks/elinks-0.17.1.1.ebuild 2025-02-03 17:39:35.950678065 +0300
1
# Copyright 1999-2019 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
DESCRIPTION="A high quality Audio CD to audio file encoder"
7
HOMEPAGE="http://jk.yazzy.org/projects/vlorb/"
8
SRC_URI="http://jk.yazzy.org/projects/vlorb/releases/${P}.tar.gz"
6
GUILE_REQ_USE="deprecated"
7
GUILE_COMPAT=( 2-2 3-0 )
8
PYTHON_COMPAT=( python3_{10..13} )
9
LUA_COMPAT=( lua5-{1,2,3,4} luajit )
10

  
11
inherit flag-o-matic guile-single meson lua-single python-single-r1
12

  
13
DESCRIPTION="Advanced and well-established text-mode web browser"
14
HOMEPAGE="http://elinks.or.cz/"
15

  
16
if [[ ${PV} == *9999 ]] ; then
17
	EGIT_REPO_URI="https://github.com/rkd77/felinks"
18
	inherit git-r3
19
else
20
	SRC_URI="https://github.com/rkd77/elinks/releases/download/v${PV}/${P}.tar.xz"
21

  
22
	KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
23
fi
9 24

  
10 25
LICENSE="GPL-2"
11 26
SLOT="0"
12
KEYWORDS="amd64 ppc sparc x86"
13
IUSE="ogg"
27
IUSE="bittorrent brotli bzip2 debug finger ftp gemini gopher gpm gnutls guile idn"
28
IUSE+=" javascript libcss lua lzma +mouse nls nntp perl python samba ssl test tre unicode X xml zlib zstd"
29
RESTRICT="!test? ( test )"
30
REQUIRED_USE="
31
	guile? ( ${GUILE_REQUIRED_USE} )
32
	javascript? ( libcss )
33
	lua? ( ${LUA_REQUIRED_USE} )
34
	python? ( ${PYTHON_REQUIRED_USE} )
35
"
14 36

  
15 37
RDEPEND="
16
	dev-lang/perl
17
	dev-perl/CDDB
18
	media-sound/cdparanoia
19
	ogg? ( media-sound/vorbis-tools )"
38
	>=sys-libs/ncurses-5.2:=[unicode(+)]
39
	brotli? ( app-arch/brotli:= )
40
	bzip2? ( >=app-arch/bzip2-1.0.2 )
41
	gpm? (
42
		>=sys-libs/gpm-1.20.0-r5
43
	)
44
	guile? ( ${GUILE_DEPS} )
45
	idn? ( net-dns/libidn2:= )
46
	javascript? (
47
		dev-cpp/libxmlpp:5.0
48
		dev-lang/mujs:=
49
	)
50
	libcss? (
51
		>=dev-libs/libcss-0.9.2
52
		>=net-libs/libdom-0.4.2
53
	)
54
	lua? ( ${LUA_DEPS} )
55
	lzma? ( app-arch/xz-utils )
56
	perl? ( dev-lang/perl:= )
57
	python? ( ${PYTHON_DEPS} )
58
	samba? ( net-fs/samba )
59
	ssl? (
60
		!gnutls? ( dev-libs/openssl:= )
61
		gnutls? ( net-libs/gnutls:= )
62
	)
63
	tre? ( dev-libs/tre )
64
	X? (
65
		x11-libs/libX11
66
		x11-libs/libXt
67
	)
68
	xml? ( >=dev-libs/expat-1.95.4 )
69
	zlib? ( >=sys-libs/zlib-1.1.4 )
70
	zstd? ( app-arch/zstd:= )
71
"
72
DEPEND="${RDEPEND}
73
	X? ( x11-base/xorg-proto )"
74
BDEPEND="
75
	virtual/pkgconfig
76
	nls? ( sys-devel/gettext )
77
	test? (
78
		net-dns/libidn
79
	)
80
"
81

  
82
PATCHES=(
83
	"${FILESDIR}"/${P}-gettext.patch
84
	"${FILESDIR}"/${P}-sftp.patch
85
)
86

  
87
pkg_setup() {
88
	use guile && guile-single_pkg_setup
89
	use lua && lua-single_pkg_setup
90
	python-single-r1_pkg_setup
91
}
20 92

  
21
src_compile() { :; }
93
src_prepare() {
94
	default
95
	use guile && guile_bump_sources
96
	python_fix_shebang .
97

  
98
	# https://bugs.gentoo.org/show_bug.cgi?id=942286
99
	sed -i -e '/find_library/s/, dirs: \[[^]]*\]//' \
100
		meson.build || die
101
}
102

  
103
src_configure() {
104
	# This file is severely broken w.r.t. strict-aliasing and upstream acknowledges it:
105
	# https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/util/lists.h#L14
106
	# https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/meson.build#L44
107
	#
108
	# Although they force fno-strict-aliasing, they do so inconsistently and not for the testsuite (!!!).
109
	# Just add it again.
110
	#
111
	# DO not trust the LTO either.
112
	append-flags -fno-strict-aliasing
113
	filter-lto
114

  
115
	local emesonargs=(
116
		-Ddocdir="${EPREFIX}"/usr/share/doc/${PF}
117
		-Dhtmldoc=false
118
		-Dpdfdoc=false
119
		-Dapidoc=false
120
		-D88-colors=true
121
		-D256-colors=true
122
		$(meson_use bittorrent)
123
		$(meson_use brotli)
124
		$(meson_use bzip2 bzlib)
125
		$(usex debug '-Ddebug=true' '-Dfastmem=true')
126
		$(meson_use finger)
127
		$(meson_use ftp)
128
		-Dfsp=false
129
		$(meson_use gemini)
130
		$(meson_use nls gettext)
131
		$(meson_use gopher)
132
		$(meson_use gpm)
133
		$(meson_use guile)
134
		-Dgssapi=false
135
		-Dhtml-highlight=true
136
		$(meson_use idn)
137
		$(meson_use javascript mujs)
138
		-Dipv6=true
139
		-Dleds=true
140
		$(meson_use libcss)
141
		-Dlibev=false
142
		-Dlibevent=false
143
		-Dluapkg=$(usex lua ${ELUA:-0} '')
144
		$(meson_use lzma)
145
		$(meson_use mouse)
146
		$(meson_use nls)
147
		$(meson_use nntp)
148
		$(meson_use perl)
149
		$(meson_use python)
150
		-Dquickjs=false
151
		-Druby=false
152
		$(meson_use samba smb)
153
		-Dsm-scripting=false
154
		-Dspidermonkey=false
155
		-Dterminfo=true
156
		$(meson_use test)
157
		$(meson_use tre)
158
		-Dtrue-color=true
159
		$(meson_use xml xbel)
160
		$(meson_use X x)
161
		$(meson_use zlib)
162
		$(meson_use zstd)
163
	)
164

  
165
	if use ssl ; then
166
		if use gnutls ; then
167
			emesonargs+=( -Dgnutls=true )
168
		else
169
			emesonargs+=( -Dopenssl=true)
170
		fi
171
	else
172
		emesonargs+=( -Dgnutls=false -Dopenssl=false )
173
	fi
174

  
175
	meson_src_configure
176
}
22 177

  
23 178
src_install() {
24
	dobin vlorb
179
	meson_src_install
180

  
181
	insinto /etc/elinks
182
	newins contrib/keybind-full.conf keybind-full.sample
183
	newins contrib/keybind.conf keybind.conf.sample
184

  
185
	dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md SITES THANKS TODO doc/*.*
186
	docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
187
	docinto contrib/lua ; dodoc contrib/lua/{*.lua,elinks-remote}
188
	docinto contrib/conv ; dodoc contrib/conv/*.*
189
	docinto contrib/guile ; dodoc contrib/guile/*.scm
190

  
191
	# elinks uses an internal copy of gettext which ships files that may
192
	# collide with the system's gettext (https://bugs.gentoo.org/635090)
193
	rm -f "${ED}"/usr/{share/locale/locale,lib/charset}.alias || die
194

  
195
	use guile && guile_unstrip_ccache
196
}
25 197

  
26
	einstalldocs
27
	doman vlorb.1
198
pkg_postinst() {
199
	elog "If upgrading from a version prior to 0.17.0, you will need to move"
200
	elog "your configuration from ~/.elinks to \${XDG_CONFIG_HOME}/elinks"
201
	elog
202
	elog "You may want to convert your html.cfg and links.cfg of"
203
	elog "Links or older ELinks versions to the new ELinks elinks.conf"
204
	elog "using ${EROOT}/usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
205
	elog
206
	elog "Please have a look at ${EROOT}/etc/elinks/keybind-full.sample and"
207
	elog "${EROOT}/etc/elinks/keybind.conf.sample for some bindings examples."
208
	elog
209
	elog "You will have to set your TERM variable to 'xterm-256color'"
210
	elog "to be able to use 256 colors in elinks."
28 211
}
Спасибо!