app-editors/howl: new package; add version 0.6 and 999 (live)

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2020-09-15 20:43:22 +02:00
parent 7202a43d68
commit eb81f56dfd
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
4 changed files with 215 additions and 0 deletions

View File

@ -0,0 +1,5 @@
DIST howl-0.6-LuaJIT-2.1.0-beta3.tar.gz 1025180 BLAKE2B ac3d12e25bd9946ba41aed6672c66884e7256e6be99d7ee8d1260d697453c966b24d60387f278f47233bad44cda61085c9059e6f62c0bc7cfdaaefde282346c5 SHA512 c44e967a0f671ed32b55aee810bc8b3b63737a2d7363b8984ae1949b24f98dbb3f9be7c1e10239fdeb96a3e3c836f606342cbd61838cf9bcadb077443eb5bc12
DIST howl-0.6-lpeg-0.10.2.tar.gz 53887 BLAKE2B 78f606cbc6c45709eaf0910cc272d8f9d554b95cd48c144c94a661eee98798e338abed81751e058820504b2f6f47fa70ca375dd13d3179e9aee3d64abda676c0 SHA512 0f8cc7e1a24654fd2999fea6d3945a7469afdee41598de807334f70a1ce6f891c73ac76db1d6592f7364d132fb6c5aa05a32f0848a5a8c7a317c26d3b78ea40d
DIST howl-0.6.tar.gz 17502537 BLAKE2B ecfa5e7a6a4f188600582ec04c7d03afc3cc80155a77bd24ff430854b0b58d668c6cc874c68cd73e8440cf21f7811d3a080e4d2cf0851765d8c7888c3d4b4ee6 SHA512 07cf3cc1d3de623bf895c3530732176f2493b04557e6d342f9b49efdfbf1609ffcd9ab429cbabdf747824b8864ac7a4f104b62e204fee37b18e5a908d3fd8d30
DIST howl-9999-LuaJIT-2.1.0-beta3.tar.gz 1025180 BLAKE2B ac3d12e25bd9946ba41aed6672c66884e7256e6be99d7ee8d1260d697453c966b24d60387f278f47233bad44cda61085c9059e6f62c0bc7cfdaaefde282346c5 SHA512 c44e967a0f671ed32b55aee810bc8b3b63737a2d7363b8984ae1949b24f98dbb3f9be7c1e10239fdeb96a3e3c836f606342cbd61838cf9bcadb077443eb5bc12
DIST howl-9999-lpeg-0.10.2.tar.gz 53887 BLAKE2B 78f606cbc6c45709eaf0910cc272d8f9d554b95cd48c144c94a661eee98798e338abed81751e058820504b2f6f47fa70ca375dd13d3179e9aee3d64abda676c0 SHA512 0f8cc7e1a24654fd2999fea6d3945a7469afdee41598de807334f70a1ce6f891c73ac76db1d6592f7364d132fb6c5aa05a32f0848a5a8c7a317c26d3b78ea40d

View File

@ -0,0 +1,99 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUAJIT_V="LuaJIT-2.1.0-beta3"
LPEG_V="lpeg-0.10.2"
# What else should we do?
BUNDLE_SRC="
http://luajit.org/download/${LUAJIT_V}.tar.gz -> ${P}-${LUAJIT_V}.tar.gz
http://nordman.org/mirror/lpeg/${LPEG_V}.tar.gz -> ${P}-${LPEG_V}.tar.gz
"
inherit eutils desktop xdg
DESCRIPTION="Lightweight editor with keyboard-centric minimalistic interface"
HOMEPAGE="https://howl.io"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/howl-editor/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://github.com/howl-editor/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
SRC_URI="
${BUNDLE_SRC}
${SRC_URI}
"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND="
x11-libs/gtk+:3[X]
"
RDEPEND="
${DEPEND}
"
src_prepare() {
default
# Instead of hooking into src_fetch it's easier to unpack
# other sources in src_prepare for the git version.
if [[ "${PV}" == *9999* ]]
then
# This is a little bit too much back-and-forth
unpack "${P}-${LUAJIT_V}.tar.gz"
mv "${S}/${LUAJIT_V}" "${WORKDIR}"
unpack "${P}-${LPEG_V}.tar.gz"
mv "${S}/${LPEG_V}" "${WORKDIR}"
fi
# Move "bundles" into a dir known by 'howl'.
mv "${WORKDIR}/${LUAJIT_V}" src/deps/ || die
mv "${WORKDIR}/${LPEG_V}" src/deps/ || die
}
src_compile() {
if pushd src
then
# By default this fetches deps with curl/wget
# but if we have "bundle" sources it shouldn't.
# If you get sandbox viotlation here that means
# the "bundles" fetched were probably incorrect.
emake
popd
else
die
fi
}
src_install() {
default
if pushd src
then
emake PREFIX="${D}"/usr install
popd
else
die
fi
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}

View File

@ -0,0 +1,99 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUAJIT_V="LuaJIT-2.1.0-beta3"
LPEG_V="lpeg-0.10.2"
# What else should we do?
BUNDLE_SRC="
http://luajit.org/download/${LUAJIT_V}.tar.gz -> ${P}-${LUAJIT_V}.tar.gz
http://nordman.org/mirror/lpeg/${LPEG_V}.tar.gz -> ${P}-${LPEG_V}.tar.gz
"
inherit eutils desktop xdg
DESCRIPTION="Lightweight editor with keyboard-centric minimalistic interface"
HOMEPAGE="https://howl.io"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/howl-editor/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://github.com/howl-editor/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
SRC_URI="
${BUNDLE_SRC}
${SRC_URI}
"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
IUSE=""
DEPEND="
x11-libs/gtk+:3[X]
"
RDEPEND="
${DEPEND}
"
src_prepare() {
default
# Instead of hooking into src_fetch it's easier to unpack
# other sources in src_prepare for the git version.
if [[ "${PV}" == *9999* ]]
then
# This is a little bit too much back-and-forth
unpack "${P}-${LUAJIT_V}.tar.gz"
mv "${S}/${LUAJIT_V}" "${WORKDIR}"
unpack "${P}-${LPEG_V}.tar.gz"
mv "${S}/${LPEG_V}" "${WORKDIR}"
fi
# Move "bundles" into a dir known by 'howl'.
mv "${WORKDIR}/${LUAJIT_V}" src/deps/ || die
mv "${WORKDIR}/${LPEG_V}" src/deps/ || die
}
src_compile() {
if pushd src
then
# By default this fetches deps with curl/wget
# but if we have "bundle" sources it shouldn't.
# If you get sandbox viotlation here that means
# the "bundles" fetched were probably incorrect.
emake
popd
else
die
fi
}
src_install() {
default
if pushd src
then
emake PREFIX="${D}"/usr install
popd
else
die
fi
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">howl-editor/howl</remote-id>
</upstream>
<longdescription>
Howl is a general purpose editor that aims to be both lightweight and fully customizable.
It is built on top of the very fast LuaJIT runtime, and can be extended in either Lua or Moonscript.
It has a minimalistic UI driven mainly by the keyboard.
</longdescription>
</pkgmetadata>