mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
app-editors/imhex: drop 1.8.1-r1, 1.10.0, 1.10.1
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1,5 +1,2 @@
|
||||
DIST imhex-1.10.0.tar.gz 8509953 BLAKE2B e258693f44d5524a86c88e29152bfe9777a149236f146a16b88bc7a49d3450f1b46138649a830c7164175afaea3c0d5e76c998e3e65020627b3c978c504431bb SHA512 03d84e30d5ee064ef2c3faf5cb40965f2c94b41e4d8b3e2e3e800f079d0710f0660b4c751dc0c4516b9b19bbf57df44a102ae61fa41d56606ce1f37c9aa8313c
|
||||
DIST imhex-1.10.1.tar.gz 8523483 BLAKE2B 7d73a06cfe83fdd9fa8723f1c64a752212f8e2f0dbf902f2d1da1349e53e580684263b168569f092d32c129eddba40131d8f8bd3148d6d59340dcd67bcdc8b6e SHA512 0542ce5db530989367dfc98932bd09e3020c955e2bd666122644612e1c41e2bc3d6a6374c60e7afbb4bae86c75930dfbc7a48f37a8cd8a0d85a550231f470b91
|
||||
DIST imhex-1.21.2.tar.gz 23473112 BLAKE2B 5e1dbcf246fc2b2ac57636efee71574eb38ee2d04678a6e09b4d8c2d61da01021bb169fa40a18725d609a3daae1bf9a4ca8aacbb21b6d381c3ff1345d9f788c6 SHA512 e5dd9c5b81f739ee37cc51cf37aa6b866b1af8b28f06e0731612612c5a56d5d68d9d50c20ebb9304a51efb88c07fde72656dcc7d6c249dd827d5d15e44de9698
|
||||
DIST imhex-1.8.1.tar.gz 1758664 BLAKE2B 62c58358810bd4f1192495001d01fc6c6fe8f28a35adc1478c8b2d0dab0fd929c0f46018c9afd51c1094cbae0c04002f4887fb2fb9377b6c645abaee006b9a03 SHA512 c6ec73a282c9eb90b58d164c29abbef3dceba09aa706a8295cecdcb429d5efa4015fac0dd0a3111eae3efe667f5b16f063624bf188a00a400fc06b008e3b51f8
|
||||
DIST imhex-patterns-1.21.2.tar.gz 4672663 BLAKE2B a0c4a9917ad44a4af0e01e67210bb025a01e6775b327248ba9259d36ea0596b2be74aed758d478b3f5c0d0aea669ed333c8aca2b7e43e275abc833bbdcef2490 SHA512 c5694bd5cc6a609dd8133f0566fbf3bfd4669cf4a20523d10afddbc39e4b7a8d52d8fdecff95883e40b6f06f858e1373c8dbe0713fd7f54380dac5ee3105b9ce
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -93,7 +93,7 @@
|
||||
if (WIN32)
|
||||
target_link_libraries(imhex ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} wsock32 ws2_32 libyara Dwmapi.lib dl)
|
||||
else ()
|
||||
- target_link_libraries(imhex ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} dl pthread libyara)
|
||||
+ target_link_libraries(imhex ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} dl pthread yara)
|
||||
endif ()
|
||||
|
||||
createPackage()
|
||||
@@ -1,14 +0,0 @@
|
||||
--- a/plugins/libimhex/CMakeLists.txt
|
||||
+++ b/plugins/libimhex/CMakeLists.txt
|
||||
@@ -95,9 +95,9 @@
|
||||
|
||||
if (APPLE)
|
||||
find_library(FOUNDATION NAMES Foundation)
|
||||
- target_link_libraries(libimhex PUBLIC imgui mbedcrypto ${FOUNDATION} nfd fmt-header-only libcurl magic)
|
||||
+ target_link_libraries(libimhex PUBLIC imgui mbedtls ${FOUNDATION} nfd fmt-header-only libcurl magic)
|
||||
else ()
|
||||
- target_link_libraries(libimhex PUBLIC imgui mbedcrypto nfd magic)
|
||||
+ target_link_libraries(libimhex PUBLIC imgui mbedtls nfd magic)
|
||||
|
||||
if (NOT USE_SYSTEM_FMT)
|
||||
target_link_libraries(libimhex PUBLIC fmt-header-only)
|
||||
@@ -1,14 +0,0 @@
|
||||
--- a/plugins/libimhex/CMakeLists.txt
|
||||
+++ b/plugins/libimhex/CMakeLists.txt
|
||||
@@ -95,9 +95,9 @@
|
||||
|
||||
if (APPLE)
|
||||
find_library(FOUNDATION NAMES Foundation)
|
||||
- target_link_libraries(libimhex PUBLIC imgui nlohmann_json mbedcrypto ${FOUNDATION} nfd fmt-header-only libcurl magic)
|
||||
+ target_link_libraries(libimhex PUBLIC imgui mbedcrypto ${FOUNDATION} nfd fmt-header-only libcurl magic)
|
||||
else ()
|
||||
- target_link_libraries(libimhex PUBLIC imgui nlohmann_json mbedcrypto nfd magic)
|
||||
+ target_link_libraries(libimhex PUBLIC imgui mbedcrypto nfd magic)
|
||||
|
||||
if (NOT USE_SYSTEM_FMT)
|
||||
target_link_libraries(libimhex PUBLIC fmt-header-only)
|
||||
@@ -1,18 +0,0 @@
|
||||
--- a/plugins/builtin/CMakeLists.txt
|
||||
+++ b/plugins/builtin/CMakeLists.txt
|
||||
@@ -25,7 +25,7 @@
|
||||
# Add additional include directories here #
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE include)
|
||||
# Add additional libraries here #
|
||||
-target_link_libraries(${PROJECT_NAME} PRIVATE libimhex LLVMDemangle)
|
||||
+target_link_libraries(${PROJECT_NAME} PRIVATE libimhex)
|
||||
|
||||
|
||||
|
||||
@@ -43,4 +43,4 @@
|
||||
|
||||
if (NOT TARGET libimhex)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../libimhex ${CMAKE_CURRENT_BINARY_DIR}/plugins/libimhex)
|
||||
-endif()
|
||||
\ Manca newline alla fine del file
|
||||
+endif()
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/plugins/libimhex/CMakeLists.txt
|
||||
+++ b/plugins/libimhex/CMakeLists.txt
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../external/ImGui ${CMAKE_CURRENT_BINARY_DIR}/external/ImGui)
|
||||
-add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../external/nativefiledialog ${CMAKE_CURRENT_BINARY_DIR}/external/nativefiledialog EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../external/microtar ${CMAKE_CURRENT_BINARY_DIR}/external/microtar EXCLUDE_FROM_ALL)
|
||||
|
||||
set(XDGPP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/../../external/xdgpp")
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -93,7 +93,7 @@
|
||||
if (WIN32)
|
||||
target_link_libraries(imhex magic ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} wsock32 ws2_32 libyara)
|
||||
else ()
|
||||
- target_link_libraries(imhex magic ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} dl pthread libyara)
|
||||
+ target_link_libraries(imhex magic ${CMAKE_DL_LIBS} capstone LLVMDemangle libimhex ${Python_LIBRARIES} dl pthread yara)
|
||||
endif ()
|
||||
|
||||
createPackage()
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/plugins/libimhex/include/hex/helpers/utils.hpp
|
||||
+++ b/plugins/libimhex/include/hex/helpers/utils.hpp
|
||||
@@ -25,7 +25,7 @@
|
||||
#define fopen64 fopen
|
||||
#define fseeko64 fseek
|
||||
#define ftello64 ftell
|
||||
-#else
|
||||
+#elif __cplusplus < 201703L
|
||||
template<>
|
||||
struct std::is_integral<u128> : public std::true_type { };
|
||||
template<>
|
||||
@@ -1,19 +0,0 @@
|
||||
--- a/plugins/libimhex/CMakeLists.txt
|
||||
+++ b/plugins/libimhex/CMakeLists.txt
|
||||
@@ -12,7 +12,6 @@
|
||||
find_package(nlohmann_json REQUIRED)
|
||||
endif()
|
||||
|
||||
-add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../external/nativefiledialog ${CMAKE_CURRENT_BINARY_DIR}/external/nativefiledialog EXCLUDE_FROM_ALL)
|
||||
if(NOT USE_SYSTEM_FMT)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../external/fmt ${CMAKE_CURRENT_BINARY_DIR}/external/fmt)
|
||||
else()
|
||||
@@ -32,7 +31,7 @@
|
||||
pkg_check_modules(LIBCURL REQUIRED IMPORTED_TARGET libcurl)
|
||||
endif()
|
||||
|
||||
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -lnfd")
|
||||
|
||||
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/plugins/libimhex/CMakeLists.txt
|
||||
+++ b/plugins/libimhex/CMakeLists.txt
|
||||
@@ -19,7 +19,7 @@
|
||||
find_package(fmt REQUIRED)
|
||||
endif()
|
||||
|
||||
-set(XDGPP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/../../external/xdgpp")
|
||||
+set(XDGPP_INCLUDE_DIRS "/usr/include")
|
||||
set(CMAKE_USE_MBEDTLS ON)
|
||||
set(BUILD_CURL_EXE OFF)
|
||||
set(FPHSA_NAME_MISMATCHED ON CACHE BOOL "")
|
||||
@@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_BUILD_TYPE="Release"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
LLVM_MAX_SLOT=12
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit cmake desktop llvm python-single-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight"
|
||||
HOMEPAGE="https://github.com/WerWolv/ImHex"
|
||||
SRC_URI="https://github.com/WerWolv/ImHex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/ImHex-${PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-forensics/yara
|
||||
>=dev-cpp/nlohmann_json-3.10.2
|
||||
dev-cpp/xdgpp
|
||||
dev-libs/capstone
|
||||
>=dev-libs/libfmt-8.0.0
|
||||
dev-libs/nativefiledialog-extended
|
||||
dev-libs/openssl
|
||||
dev-libs/tre
|
||||
media-libs/freetype
|
||||
media-libs/glfw
|
||||
media-libs/glm
|
||||
net-libs/mbedtls
|
||||
net-misc/curl
|
||||
sys-apps/file
|
||||
sys-devel/llvm:${LLVM_MAX_SLOT}
|
||||
virtual/libiconv
|
||||
virtual/libintl
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="app-admin/chrpath"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.8.1-system-xdgpp.patch"
|
||||
"${FILESDIR}/${PN}-1.8.1-system-nativefiledialog.patch"
|
||||
"${FILESDIR}/${P}-fix-yara-linking.patch"
|
||||
"${FILESDIR}/${P}-no-lnlohmann_json.patch"
|
||||
"${FILESDIR}/${P}-link-mbedtls.patch"
|
||||
)
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r external/{curl,fmt,llvm,nativefiledialog,nlohmann_json,xdgpp,yara} || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
python-single-r1_pkg_setup
|
||||
local mycmakeargs=(
|
||||
-DPROJECT_VERSION="${PV}"
|
||||
-DPYTHON_VERSION_MAJOR_MINOR="\"${EPYTHON/python/}\""
|
||||
-DUSE_SYSTEM_CURL=ON
|
||||
-DUSE_SYSTEM_FMT=ON
|
||||
-DUSE_SYSTEM_LLVM=ON
|
||||
-DUSE_SYSTEM_NLOHMANN_JSON=ON
|
||||
-DUSE_SYSTEM_YARA=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# can't use cmake_src_install, doing it manual
|
||||
dobin "${BUILD_DIR}/${PN}"
|
||||
insinto "/usr/$(get_libdir)"
|
||||
doins "${BUILD_DIR}/plugins/builtin/builtin.hexplug"
|
||||
dolib.so "${BUILD_DIR}/plugins/lib${PN}/lib${PN}.so"
|
||||
insinto "/usr/share/${PN}"
|
||||
doins "${S}/res/icon.ico"
|
||||
doins -r "${S}/res/resources"
|
||||
|
||||
chrpath -d "${ED}/usr/bin/imhex"
|
||||
chrpath -d "${ED}/usr/$(get_libdir)/builtin.hexplug"
|
||||
|
||||
mypythondir="${D}/$(python_get_sitedir)/imhex"
|
||||
mkdir -p "${mypythondir}" || die
|
||||
mv "${S}"/python_libs/lib/* "${mypythondir}" || die
|
||||
python_optimize "${mypythondir}"
|
||||
|
||||
# create desktop icon
|
||||
make_desktop_entry "imhex" "ImHex" "/usr/share/${PN}/icon.ico" "X-Editor"
|
||||
|
||||
# install docs
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
@@ -1,104 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_BUILD_TYPE="Release"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
LLVM_MAX_SLOT=12
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit cmake desktop llvm python-single-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight"
|
||||
HOMEPAGE="https://github.com/WerWolv/ImHex"
|
||||
SRC_URI="https://github.com/WerWolv/ImHex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/ImHex-${PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-forensics/yara
|
||||
>=dev-cpp/nlohmann_json-3.10.2
|
||||
dev-cpp/xdgpp
|
||||
dev-libs/capstone
|
||||
>=dev-libs/libfmt-8.0.0
|
||||
dev-libs/nativefiledialog-extended
|
||||
dev-libs/openssl
|
||||
dev-libs/tre
|
||||
media-libs/freetype
|
||||
media-libs/glfw
|
||||
media-libs/glm
|
||||
net-libs/mbedtls
|
||||
net-misc/curl
|
||||
sys-apps/file
|
||||
sys-devel/llvm:${LLVM_MAX_SLOT}
|
||||
virtual/libiconv
|
||||
virtual/libintl
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="app-admin/chrpath"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-no-lLLVMDemangle.patch"
|
||||
"${FILESDIR}/${PN}-1.8.1-system-xdgpp.patch"
|
||||
"${FILESDIR}/${P}-system-nativefiledialog.patch"
|
||||
)
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r external/{curl,fmt,llvm,nativefiledialog,nlohmann_json,xdgpp,yara} || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
python-single-r1_pkg_setup
|
||||
local mycmakeargs=(
|
||||
-DPROJECT_VERSION="${PV}"
|
||||
-DPYTHON_VERSION_MAJOR_MINOR="\"${EPYTHON/python/}\""
|
||||
-DUSE_SYSTEM_CURL=ON
|
||||
-DUSE_SYSTEM_FMT=ON
|
||||
-DUSE_SYSTEM_LLVM=ON
|
||||
-DUSE_SYSTEM_NLOHMANN_JSON=ON
|
||||
-DUSE_SYSTEM_YARA=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# can't use cmake_src_install, doing it manual
|
||||
dobin "${BUILD_DIR}/${PN}"
|
||||
insinto "/usr/$(get_libdir)"
|
||||
doins "${BUILD_DIR}/plugins/builtin/builtin.hexplug"
|
||||
dolib.so "${BUILD_DIR}/plugins/lib${PN}/lib${PN}.so"
|
||||
insinto "/usr/share/${PN}"
|
||||
doins "${S}/res/icon.ico"
|
||||
doins -r "${S}/res/resources"
|
||||
|
||||
chrpath -d "${ED}/usr/bin/imhex"
|
||||
chrpath -d "${ED}/usr/$(get_libdir)/builtin.hexplug"
|
||||
|
||||
mypythondir="${D}/$(python_get_sitedir)/imhex"
|
||||
mkdir -p "${mypythondir}" || die
|
||||
mv "${S}"/python_libs/lib/* "${mypythondir}" || die
|
||||
python_optimize "${mypythondir}"
|
||||
|
||||
# create desktop icon
|
||||
make_desktop_entry "imhex" "ImHex" "/usr/share/${PN}/icon.ico" "X-Editor"
|
||||
|
||||
# install docs
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
CMAKE_BUILD_TYPE="Release"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
LLVM_MAX_SLOT=12
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit cmake desktop llvm python-single-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight"
|
||||
HOMEPAGE="https://github.com/WerWolv/ImHex"
|
||||
SRC_URI="https://github.com/WerWolv/ImHex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/ImHex-${PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-forensics/yara
|
||||
dev-cpp/nlohmann_json
|
||||
dev-cpp/xdgpp
|
||||
dev-libs/capstone
|
||||
<dev-libs/libfmt-8.0.0
|
||||
dev-libs/nativefiledialog-extended
|
||||
dev-libs/openssl
|
||||
dev-libs/tre
|
||||
media-libs/freetype
|
||||
media-libs/glfw
|
||||
media-libs/glm
|
||||
net-libs/mbedtls
|
||||
net-misc/curl
|
||||
sys-apps/file
|
||||
sys-devel/llvm:${LLVM_MAX_SLOT}
|
||||
virtual/libiconv
|
||||
virtual/libintl
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="app-admin/chrpath"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gcc11.patch"
|
||||
"${FILESDIR}/${P}-system-xdgpp.patch"
|
||||
"${FILESDIR}/${P}-system-nativefiledialog.patch"
|
||||
"${FILESDIR}/${P}-fix-yara-linking.patch"
|
||||
)
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r external/{curl,fmt,llvm,nativefiledialog,nlohmann_json,xdgpp,yara} || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
python-single-r1_pkg_setup
|
||||
local mycmakeargs=(
|
||||
-DPROJECT_VERSION="${PV}"
|
||||
-DPYTHON_VERSION_MAJOR_MINOR="\"${EPYTHON/python/}\""
|
||||
-DUSE_SYSTEM_CURL=ON
|
||||
-DUSE_SYSTEM_FMT=ON
|
||||
-DUSE_SYSTEM_LLVM=ON
|
||||
-DUSE_SYSTEM_NLOHMANN_JSON=ON
|
||||
-DUSE_SYSTEM_YARA=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# can't use cmake_src_install, doing it manual
|
||||
dobin "${BUILD_DIR}/${PN}"
|
||||
insinto "/usr/$(get_libdir)"
|
||||
doins "${BUILD_DIR}/plugins/builtin/builtin.hexplug"
|
||||
dolib.so "${BUILD_DIR}/plugins/lib${PN}/lib${PN}.so"
|
||||
insinto "/usr/share/${PN}"
|
||||
doins "${S}/res/icon.ico"
|
||||
doins -r "${S}/res/resources"
|
||||
insinto "/usr/share/${PN}/magic"
|
||||
newins "${BUILD_DIR}/magic_dbs.mgc" "magic.mgc"
|
||||
|
||||
chrpath -d "${ED}/usr/bin/imhex"
|
||||
chrpath -d "${ED}/usr/$(get_libdir)/builtin.hexplug"
|
||||
|
||||
mypythondir="${D}/$(python_get_sitedir)/imhex"
|
||||
mkdir -p "${mypythondir}" || die
|
||||
mv "${S}"/python_libs/lib/* "${mypythondir}" || die
|
||||
python_optimize "${mypythondir}"
|
||||
|
||||
# create desktop icon
|
||||
make_desktop_entry "imhex" "ImHex" "/usr/share/${PN}/icon.ico" "X-Editor"
|
||||
|
||||
# install docs
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
Reference in New Issue
Block a user