Revert "Fix CMake install rules and packaging issues"

This reverts commit d863237037.

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2025-12-25 19:25:58 +01:00
parent fb7c197ad6
commit ad7db64399
5 changed files with 111 additions and 38 deletions

View File

@@ -1 +1,2 @@
DIST gentoo-update-0.2.tar.gz 27700 BLAKE2B 6dc5afd8a50c5192cb411972e4276a71f8b69add7ef7153b819b5c4610dd5a90aebc0a7480e3fbce8a9d1a1c8c74dd6d72a7f9c4e22d5ebb43c29dcbe591f0c7 SHA512 8f52e1dbe264e9496abfdd5a3916426343144eaa0ebbdc329b7c622d0cf5ee079d59d68ddae306032461538c6dd891a54c364e56faf34fa19d09dc3ab07ce342
DIST gentoo-update-0.1.tar.gz 27762 BLAKE2B 6a4422aeec4f6e8fb20f1bc3ef050a20b652d04211f5d2df95f9c04a024ad821db980ba5e6fb39360bdf266ae74da8dbd86c30b8e3e79fea43fcc1cacea9fbf9 SHA512 b903e53582f90a9ae3010b12b85e94407e988ef1cc1ce1863290c0f0ecaf3fd2167c85858147be69d88bd03f7b25ad8aaf63e2e33cf0be685bd9261d5db561c9
DIST gentoo-update-0.2.tar.gz 27663 BLAKE2B 6a18bdd46a5019f81642d256a9bdf77ee6de8c612b82ed046f0872800d4529a840a7a030348243f7dafd18ed7d873057e58ba4250382e41bc0979912d2fcb6a1 SHA512 561fa2abb085989a1360adfc9ceb014eed24c57c0cf5dbc126e14c98c71f4c83c26885c2a60b85e609762c6583a33d0e818065e91d66d4da3e21e9d8f27c751e

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake systemd
DESCRIPTION="Update notifier and applier for Gentoo Linux"
HOMEPAGE="https://github.com/Techoraye/gentoo-update"
SRC_URI="https://github.com/Techoraye/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="gui"
RDEPEND="
app-portage/gentoolkit
sys-apps/portage
gui? (
dev-python/PyQt6[gui]
x11-libs/libnotify
)
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_LOCALSTATEDIR="${EPREFIX}/var"
)
cmake_src_configure
}
src_install() {
cmake_src_install
insinto /etc/${PN}
newins res/config/${PN}.conf.example ${PN}.conf
newbashcomp res/completions/${PN}.bash ${PN}
insinto /usr/share/zsh/site-functions
newins res/completions/${PN}.zsh _${PN}
insinto /usr/share/fish/vendor_completions.d
doins res/completions/${PN}.fish
if use gui; then
domenu res/desktop/${PN}.desktop
domenu res/desktop/${PN}-tray.desktop
fi
systemd_dounit res/systemd/${PN}.service
systemd_dounit res/systemd/${PN}.timer
use gui && systemd_dounit res/systemd/${PN}-tray.service
newinitd res/openrc/${PN} ${PN}
}
pkg_postinst() {
elog "Configuration file: /etc/${PN}/${PN}.conf"
elog "See 'man ${PN}' or ${PN} --help for usage information"
if use gui; then
elog ""
elog "GUI support is enabled. Run '${PN} --tray' for the system tray applet."
fi
}

View File

@@ -9,7 +9,7 @@ DESCRIPTION="Update notifier and applier for Gentoo Linux"
HOMEPAGE="https://github.com/Techoraye/gentoo-update"
SRC_URI="https://github.com/Techoraye/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3-or-later"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="gui"
@@ -18,14 +18,16 @@ RDEPEND="
app-portage/gentoolkit
sys-apps/portage
gui? (
dev-python/PyQt6
dev-python/PyQt6[gui,network]
x11-libs/libnotify
)
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_LOCALSTATEDIR="${EPREFIX}/var"
-DENABLE_GUI=$(usex gui)
)
cmake_src_configure
@@ -33,15 +35,35 @@ src_configure() {
src_install() {
cmake_src_install
insinto /etc/${PN}
newins res/config/${PN}.conf.example ${PN}.conf
newbashcomp res/completions/${PN}.bash ${PN}
insinto /usr/share/zsh/site-functions
newins res/completions/${PN}.zsh _${PN}
insinto /usr/share/fish/vendor_completions.d
doins res/completions/${PN}.fish
if use gui; then
domenu res/desktop/${PN}.desktop
domenu res/desktop/${PN}-tray.desktop
fi
systemd_dounit res/systemd/${PN}.service
systemd_dounit res/systemd/${PN}.timer
use gui && systemd_dounit res/systemd/${PN}-tray.service
newinitd res/openrc/${PN} ${PN}
}
pkg_postinst() {
elog "Configuration example:"
elog " /usr/share/${PN}/config/${PN}.conf.example"
elog "Copy it to /etc/${PN}/${PN}.conf and adjust as needed."
elog "Configuration: /etc/${PN}/${PN}.conf"
if use gui; then
elog "Run '${PN} --tray' to start the system tray applet."
elog "Run '${PN} --tray' for the system tray applet"
fi
if systemd_is_booted; then
@@ -51,4 +73,4 @@ pkg_postinst() {
elog "Enable automatic updates:"
elog " rc-update add ${PN} default"
fi
}
}

View File

@@ -1,29 +0,0 @@
EAPI=8
inherit git-r3 cmake systemd
DESCRIPTION="Update notifier and applier for Gentoo Linux"
HOMEPAGE="https://github.com/Techoraye/gentoo-update"
EGIT_REPO_URI="https://github.com/Techoraye/gentoo-update.git"
LICENSE="GPL-3-or-later"
SLOT="0"
KEYWORDS=""
IUSE="gui"
RDEPEND="
app-portage/gentoolkit
sys-apps/portage
gui? (
dev-python/PyQt6
x11-libs/libnotify
)
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DENABLE_GUI=$(usex gui)
)
cmake_src_configure
}

View File

@@ -1,2 +1,13 @@
masters = gentoo
auto-sync = no
# Please keep this reasonably in sync with ::gentoo
manifest-hashes = BLAKE2B SHA512
manifest-required-hashes = BLAKE2B
update-changelog = false
cache-formats = md5-dict
thin-manifests = true
sign-commits = true
sign-manifests = false
# Let's start with new EAPIs if possible
eapis-banned = 0 1 2 3 4 5 6