x11-misc/exit-options: new package, add 20250830

Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2025-09-14 21:41:56 -03:00
parent e75beab44e
commit 1baad5f268
4 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST exit-options-20250830.tar.gz 443706 BLAKE2B 417836c4f41c0c9f92e70a2b5dccc0f3182118a0720727aec8df54cb94d584323cd62828703abaa275a3277f3f135f5074bed7592e61088244bd1bdfc9401eb6 SHA512 6d3d9fc7a1e90b0eea79a4435f709c425d7a6a29138fe53408b5c6e4c3df6e0b6a42f76601b64d7189bb9d172b90c3c0c0a582a272b0fc4dc43c13154ec84794

View File

@@ -0,0 +1,66 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
COMMIT="d3a0c92d9ca232860680165271bc78be111c6961"
inherit cmake xdg
DESCRIPTION="Pop-up with exit options for MX Fluxbox"
HOMEPAGE="https://github.com/MX-Linux/exit-options"
SRC_URI="https://github.com/MX-Linux/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-qt/qtbase:6[gui,widgets]
dev-qt/qttools:6[linguist]
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-build/cmake
dev-build/ninja
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/"${PN}"-cmake.patch
)
src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DNO_DEBUG_ON_CONSOLE=ON
)
cmake_src_configure
}
src_install() {
cmake_src_install
einstalldocs
# debian/install ...
insinto /usr/share/"${PN}"/conf
doins configs_alt/*
insinto /etc/
doins "${PN}".conf
insinto /usr/share/"${PN}"
doins -r icons/*
}
pkg_postinst() {
xdg_pkg_postinst
}
pkg_postrm() {
xdg_pkg_postrm
}

View File

@@ -0,0 +1,27 @@
remove debian specific stuff
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,21 +22,8 @@
cmake_minimum_required(VERSION 3.16)
-# Get version from debian/changelog
-execute_process(
- COMMAND dpkg-parsechangelog -SVersion
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
- OUTPUT_VARIABLE PROJECT_VERSION_FROM_CHANGELOG
- OUTPUT_STRIP_TRAILING_WHITESPACE
- RESULT_VARIABLE DPKG_RESULT
-)
-
-if(NOT DPKG_RESULT EQUAL 0)
- message(FATAL_ERROR "Failed to get version from debian/changelog using dpkg-parsechangelog")
-endif()
-
project(exit-options
- VERSION ${PROJECT_VERSION_FROM_CHANGELOG}
+ VERSION 9.9.9.9
DESCRIPTION "Exit Options dialog for MX Fluxbox"
LANGUAGES CXX
)

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ghostyn678+git@gmail.com</email>
<name>dsaf</name>
</maintainer>
<upstream>
<remote-id type="github">MX-Linux/exit-options</remote-id>
</upstream>
</pkgmetadata>