app-editors/lite: add version 1.11 and 9999 (live)
Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
2caf030377
commit
c9bf5853ab
1
app-editors/lite/Manifest
Normal file
1
app-editors/lite/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST lite-1.11.tar.gz 10704195 BLAKE2B 567bfd9c01cffa7570aed5ce3ea5213636322ee745ba9ddc040aba7e3bf55f9818671f000f1cecd551a2e7c7981058a914163c5a33273e3932c07322b82080d7 SHA512 2fe3a651cc3ddedd67d8b8f2b53b262eed8a64295d65d31b17ff80f787cfe53fd82c8e69aaaada7806c08f9814eb4a576668dc5614de43ddf2caa6d5aae338f0
|
97
app-editors/lite/lite-1.11.ebuild
Normal file
97
app-editors/lite/lite-1.11.ebuild
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit eutils desktop xdg
|
||||||
|
|
||||||
|
DESCRIPTION="A lightweight text editor written in Lua"
|
||||||
|
HOMEPAGE="https://github.com/rxi/lite"
|
||||||
|
|
||||||
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/rxi/${PN}.git"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/rxi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RESTRICT="mirror"
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
media-gfx/imagemagick
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/libbsd
|
||||||
|
media-libs/libsdl2
|
||||||
|
media-libs/libsndfile
|
||||||
|
net-libs/libasyncns
|
||||||
|
sys-apps/util-linux
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXau
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXdmcp
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXrender
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-libs/libXxf86vm
|
||||||
|
x11-libs/libxcb
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
bash build.sh release || die
|
||||||
|
|
||||||
|
cp icon.ico lite.ico || die
|
||||||
|
# This converts to 4 png files
|
||||||
|
convert icon.ico "${PN}.png" || die
|
||||||
|
mv lite-0.png lite-64.png || die
|
||||||
|
mv lite-1.png lite-48.png || die
|
||||||
|
mv lite-2.png lite-32.png || die
|
||||||
|
mv lite-3.png lite-16.png || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
insinto "/opt/${PN}"
|
||||||
|
doins -r data
|
||||||
|
exeinto "/opt/${PN}"
|
||||||
|
doexe lite
|
||||||
|
dosym "../../opt/${PN}/${PN}" "/usr/bin/${PN}"
|
||||||
|
|
||||||
|
local res
|
||||||
|
for res in 16 32 48 64
|
||||||
|
do
|
||||||
|
# We do this 'mv' to install to
|
||||||
|
# /usr/share/icons/hicolor/16x16/apps/lite.png
|
||||||
|
# instead of
|
||||||
|
# /usr/share/icons/hicolor/16x16/apps/lite-16.png
|
||||||
|
mv "${PN}-${res}.png" "${PN}.png" || die
|
||||||
|
doicon -s "${res}" "${PN}.png"
|
||||||
|
done
|
||||||
|
doicon "${PN}.ico"
|
||||||
|
make_desktop_entry "${PN}" "${PN^}" "${PN}" "Development;IDE"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
97
app-editors/lite/lite-9999.ebuild
Normal file
97
app-editors/lite/lite-9999.ebuild
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit eutils desktop xdg
|
||||||
|
|
||||||
|
DESCRIPTION="A lightweight text editor written in Lua"
|
||||||
|
HOMEPAGE="https://github.com/rxi/lite"
|
||||||
|
|
||||||
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/rxi/${PN}.git"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/rxi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RESTRICT="mirror"
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
media-gfx/imagemagick
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/libbsd
|
||||||
|
media-libs/libsdl2
|
||||||
|
media-libs/libsndfile
|
||||||
|
net-libs/libasyncns
|
||||||
|
sys-apps/util-linux
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXau
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXdmcp
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXrender
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-libs/libXxf86vm
|
||||||
|
x11-libs/libxcb
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
bash build.sh release || die
|
||||||
|
|
||||||
|
cp icon.ico lite.ico || die
|
||||||
|
# This converts to 4 png files
|
||||||
|
convert icon.ico "${PN}.png" || die
|
||||||
|
mv lite-0.png lite-64.png || die
|
||||||
|
mv lite-1.png lite-48.png || die
|
||||||
|
mv lite-2.png lite-32.png || die
|
||||||
|
mv lite-3.png lite-16.png || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
insinto "/opt/${PN}"
|
||||||
|
doins -r data
|
||||||
|
exeinto "/opt/${PN}"
|
||||||
|
doexe lite
|
||||||
|
dosym "../../opt/${PN}/${PN}" "/usr/bin/${PN}"
|
||||||
|
|
||||||
|
local res
|
||||||
|
for res in 16 32 48 64
|
||||||
|
do
|
||||||
|
# We do this 'mv' to install to
|
||||||
|
# /usr/share/icons/hicolor/16x16/apps/lite.png
|
||||||
|
# instead of
|
||||||
|
# /usr/share/icons/hicolor/16x16/apps/lite-16.png
|
||||||
|
mv "${PN}-${res}.png" "${PN}.png" || die
|
||||||
|
doicon -s "${res}" "${PN}.png"
|
||||||
|
done
|
||||||
|
doicon "${PN}.ico"
|
||||||
|
make_desktop_entry "${PN}" "${PN^}" "${PN}" "Development;IDE"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
7
app-editors/lite/metadata.xml
Normal file
7
app-editors/lite/metadata.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">rxi/lite</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user