3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
inherit desktop flag-o-matic toolchain-funcs xdg
|
|
6 |
PYTHON_COMPAT=( python3_{10..13} )
|
|
7 |
inherit python-single-r1
|
7 |
8 |
|
8 |
|
MY_P="${PN}-v${PV}"
|
9 |
|
DESCRIPTION="Teletext viewer for X11"
|
10 |
|
HOMEPAGE="https://gitlab.com/alevt/alevt"
|
11 |
|
SRC_URI="https://gitlab.com/${PN}/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2
|
12 |
|
-> ${P}.tar.bz2"
|
13 |
|
S="${WORKDIR}/${MY_P}"
|
|
9 |
DESCRIPTION="Versatile (cross-)toolchain generator"
|
|
10 |
HOMEPAGE="https://crosstool-ng.github.io/"
|
14 |
11 |
|
15 |
|
LICENSE="GPL-2"
|
|
12 |
if [[ ${PV} == 9999 ]] ; then
|
|
13 |
EGIT_REPO_URI="https://github.com/crosstool-ng/crosstool-ng.git"
|
|
14 |
inherit autotools git-r3
|
|
15 |
else
|
|
16 |
SRC_URI="
|
|
17 |
https://github.com/crosstool-ng/crosstool-ng/releases/download/${PN}-${PV/_rc/-rc}/${P}.tar.xz
|
|
18 |
http://crosstool-ng.org/download/crosstool-ng/${P}.tar.xz
|
|
19 |
"
|
|
20 |
|
|
21 |
if [[ ${PV} != *_rc* ]] ; then
|
|
22 |
KEYWORDS="~amd64 ~x86"
|
|
23 |
fi
|
|
24 |
fi
|
|
25 |
|
|
26 |
LICENSE="GPL-2 doc? ( CC-BY-SA-2.5 )"
|
16 |
27 |
SLOT="0"
|
17 |
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
18 |
28 |
|
19 |
|
RDEPEND="
|
20 |
|
x11-libs/libX11
|
21 |
|
media-libs/libpng:=
|
|
29 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
30 |
IUSE="curl cvs doc dtc git lzip meson ninja python rsync subversion wget"
|
|
31 |
|
|
32 |
# TODO: Consider dropping these USE (optfeature), but configure does check for them
|
|
33 |
BDEPEND="
|
|
34 |
app-arch/unzip
|
|
35 |
>=app-shells/bash-3.1
|
|
36 |
sys-apps/help2man
|
|
37 |
>=sys-apps/sed-4.0
|
|
38 |
sys-apps/gawk
|
|
39 |
sys-apps/texinfo
|
|
40 |
sys-apps/which
|
|
41 |
sys-devel/bison
|
|
42 |
sys-devel/flex
|
|
43 |
curl? ( net-misc/curl )
|
|
44 |
cvs? ( dev-vcs/cvs )
|
|
45 |
dtc? ( sys-apps/dtc )
|
|
46 |
git? ( dev-vcs/git )
|
|
47 |
lzip? ( app-arch/lzip )
|
|
48 |
meson? ( dev-build/meson )
|
|
49 |
python? ( ${PYTHON_DEPS} )
|
|
50 |
ninja? ( app-alternatives/ninja )
|
|
51 |
rsync? ( net-misc/rsync )
|
|
52 |
subversion? ( dev-vcs/subversion )
|
|
53 |
wget? ( net-misc/wget )
|
22 |
54 |
"
|
23 |
|
DEPEND="
|
24 |
|
${RDEPEND}
|
25 |
|
x11-base/xorg-proto
|
|
55 |
RDEPEND="
|
|
56 |
${BDEPEND}
|
26 |
57 |
"
|
27 |
|
BDEPEND="virtual/pkgconfig"
|
28 |
58 |
|
29 |
|
PATCHES=(
|
30 |
|
"${FILESDIR}"/${P}-respectflags.patch
|
31 |
|
"${FILESDIR}"/${PN}-1.8.2-musl.patch
|
32 |
|
)
|
|
59 |
src_prepare() {
|
|
60 |
if [[ ${PV} == 9999 ]]; then
|
|
61 |
# Some data files must be generated before autoreconf, and the logic
|
|
62 |
# is non-trivial, so the upstream bootstrap script must be used.
|
|
63 |
# In addition, eautoreconf mis-detects the project to make use of
|
|
64 |
# gettext while it actually isn't, so just rely on the invocation of
|
|
65 |
# autoreconf for us in the bootstrap script.
|
|
66 |
./bootstrap || die "bootstrap failed"
|
|
67 |
fi
|
|
68 |
|
|
69 |
default
|
|
70 |
}
|
33 |
71 |
|
34 |
72 |
src_configure() {
|
35 |
|
# -std-gnu17: bug #945281
|
36 |
|
append-cflags -fno-strict-aliasing -std=gnu17
|
37 |
|
tc-export BUILD_CC CC
|
|
73 |
# Needs bison+flex
|
|
74 |
unset YACC LEX
|
|
75 |
|
|
76 |
CONFIG_SHELL="${BROOT}"/bin/bash econf
|
38 |
77 |
}
|
39 |
78 |
|
40 |
79 |
src_install() {
|
41 |
|
# The upstream Makefile has the 'install' rule under a comment
|
42 |
|
# "anything below this line is just for me!", so avoid it.
|
43 |
|
dobin alevt alevt-cap alevt-date
|
44 |
|
doman alevt.1x alevt-date.1 alevt-cap.1
|
45 |
|
einstalldocs
|
46 |
|
|
47 |
|
newicon -s 16 contrib/mini-alevt.xpm alevt.xpm
|
48 |
|
newicon -s 48 contrib/icon48x48.xpm alevt.xpm
|
49 |
|
make_desktop_entry alevt "AleVT" alevt
|
|
80 |
emake DESTDIR="${D}" install
|
|
81 |
|
|
82 |
rm -f "${ED}"/usr/share/man/man1/ct-ng.1.gz || die
|
|
83 |
doman docs/ct-ng.1
|
50 |
84 |
}
|