mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
rehex-0.3.91.ebuild
This commit is contained in:
parent
e6bb4acbf3
commit
663394913d
3 changed files with 48 additions and 74 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST rehex-0.3.1.tar.gz 2658555 BLAKE2B 0e047fe6887f0caccd86b6459fd5365bc3144983f0200b0b7ba5cedc9fff3b3fa187883fc3cec40bdd5ce24d76dc390de790e41b4b2ad8358c1710ee3ce869f7 SHA512 c73d8e224e7aec3eb6901f5fce23de649b29c5feffef19f6216a3ab273176f480dc82023962dfb8bc798a818444a6c06cc85330db134b37153e458e7268e7f9e
|
||||
DIST rehex-0.3.91.tar.gz 3292919 BLAKE2B c248f961ffe48f0287a98cc81fd91ef68d05fdf1a312e0601571b0d1bd6674414fe642c0fc5e24493145746181fbb0c404e02e102253279397d91fe6aa2a6f8b SHA512 21c5c6af4f4f5b76ee1f700eefd87debb6f689cc44f76bb2648498813cccaa955d86c9817753f2098e90efb9f36737151a3109a8a2029ed1a95a701dda7bdbc5
|
||||
|
|
|
|||
47
app-editors/rehex/rehex-0.3.91.ebuild
Normal file
47
app-editors/rehex/rehex-0.3.91.ebuild
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
WX_GTK_VER="3.0-gtk3"
|
||||
|
||||
LUA_COMPAT=(lua5-{1..4} )
|
||||
inherit wxwidgets xdg lua-single
|
||||
|
||||
DESCRIPTION="Reverse Engineers' Hex Editor"
|
||||
HOMEPAGE="https://github.com/solemnwarning/rehex"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/solemnwarning/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/solemnwarning/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror
|
||||
!test? ( test )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="${LUA_DEPS}
|
||||
dev-libs/capstone
|
||||
dev-libs/jansson
|
||||
x11-libs/wxGTK:${WX_GTK_VER}[X]"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-cpp/gtest
|
||||
)"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
export LUA_PKG=${ELUA}
|
||||
setup-wxwidgets
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake LUA_PKG=${ELUA} prefix="${D}"/usr install
|
||||
}
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit eutils pax-utils desktop
|
||||
|
||||
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
|
||||
HOMEPAGE="https://code.visualstudio.com"
|
||||
BASE_URI="https://vscode-update.azurewebsites.net/${PV}"
|
||||
# x86? ( ${BASE_URI}/linux-ia32/stable -> ${P}-x86.tar.gz )
|
||||
SRC_URI="
|
||||
amd64? ( ${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz )
|
||||
"
|
||||
|
||||
RESTRICT="mirror strip bindist"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="gnome-keyring"
|
||||
|
||||
DEPEND="gnome-base/gsettings-desktop-schemas
|
||||
>=media-libs/libpng-1.2.46:0
|
||||
>=x11-libs/cairo-1.14.12:0
|
||||
>=x11-libs/gtk+-2.24.31-r1:2
|
||||
>=x11-libs/libXtst-1.2.3:0
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=net-print/cups-2.1.4:0
|
||||
>=x11-libs/libnotify-0.7.7:0
|
||||
>=x11-libs/libXScrnSaver-1.2.2-r1:0
|
||||
dev-libs/nss
|
||||
gnome-keyring? ( app-crypt/libsecret[crypt] )
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/${PN}/*"
|
||||
QA_PRESTRIPPED="opt/${PN}/*"
|
||||
|
||||
pkg_setup(){
|
||||
use amd64 && S="${WORKDIR}/VSCode-linux-x64" || S="${WORKDIR}/VSCode-linux-ia32"
|
||||
}
|
||||
|
||||
src_install(){
|
||||
local DEST="/opt/${PN}"
|
||||
pax-mark m code
|
||||
insinto "${DEST}"
|
||||
doins -r *
|
||||
dosym "${DEST}/bin/code" "/usr/bin/${PN}"
|
||||
dosym "${DEST}/bin/code" "/usr/bin/vscode"
|
||||
make_desktop_entry "vscode" "Visual Studio Code" "${PN}" "Development;IDE"
|
||||
doicon "${FILESDIR}/${PN}.png"
|
||||
fperms +x "${DEST}/code"
|
||||
fperms +x "${DEST}/bin/code"
|
||||
# fperms +x "${DEST}/libnode.so"
|
||||
fperms +x "${DEST}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg"
|
||||
fperms +x "${DEST}/resources/app/extensions/git/dist/askpass.sh"
|
||||
insinto "/usr/share/licenses/${PN}"
|
||||
for i in resources/app/LICEN*;
|
||||
do
|
||||
newins "${i}" "`basename ${i}`"
|
||||
done
|
||||
for i in resources/app/licenses/*;
|
||||
do
|
||||
newins "${i}" "`basename ${i}`"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
einfo "You may install some additional utils, so check them in:"
|
||||
einfo "https://code.visualstudio.com/Docs/setup#_additional-tools"
|
||||
}
|
||||
Loading…
Reference in a new issue