gui-apps/paperdesktop: move live ebuild to cmake

also add dated ebuild

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
Aisha Tammy
2021-03-10 23:36:40 -05:00
parent 8aad2ca5fa
commit 41b505beb2
3 changed files with 70 additions and 23 deletions

View File

@@ -1 +1,2 @@
DIST paperdesktop-0_p20201107.tar.gz 200672 BLAKE2B d2c7807cd23294521ada75bfbae2f841e72a399a8bfc94e2f507c15eeda00d5fef90826225ae3d531d0b33f82ce2e0aa06b5081778e8354e87ccea30daf310c6 SHA512 940f0aba34fc8d03a3dc716ca921991ce3aa22eb0afcb601c23f3dd8ada2f15e22c5f0dbc83e58c003a3c43a0955e0b3634824d34fea1b2ce97bc3c2dfd28475
DIST paperdesktop-0_p20210310.tar.gz 2239536 BLAKE2B c1b5c296d36db9687e8e106d2608da057238e91c607443d4cb28725fc90b6c35e2ae14d178ad79be525d6262574a2d0f0b54ee71f3de02de25d3a3aa31465b03 SHA512 77f26cb61e9cd2d02eb7dfe2eab12d17a10d96007bc8d4dda8b30e9327d3036c9ad3341268df2f5151ed48e96a9facc4d66abc7ae10dcd04e284a20b3e29cea9

View File

@@ -0,0 +1,53 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake xdg
DESCRIPTION="Simple, sleek QT based DE for wayland using wayfire"
HOMEPAGE="https://gitlab.com/cubocore/paper/paperdesktop"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/cubocore/paper/paperdesktop"
else
COMMIT=65c755306688203ddc32bbc099ba1de03166cde9
SRC_URI="https://gitlab.com/cubocore/paper/paperdesktop/-/archive/${COMMIT}/paperdesktop-${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/paperdesktop-${COMMIT}
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
DEPEND="
dev-libs/libdbusmenu-qt
dev-libs/wayland
dev-qt/designer:5
dev-qt/qtcore:5
dev-qt/qtgui:5[wayland,X]
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5[X]
dev-qt/qtsvg:5
gui-libs/libcprime
gui-libs/libcsys
"
RDEPEND="${DEPEND}
gui-wm/wayfire[X]
x11-misc/qt5ct
"
src_prepare() {
cmake_src_prepare
xdg_src_prepare
}
src_configure() {
local mycmakeargs=(
-DPKGSHAREDPATH="${EPREFIX}/usr/share/paperde"
-DPKGCONFPATH="${EPREFIX}/etc/xdg/paperde"
)
cmake_src_configure
}

View File

@@ -1,11 +1,11 @@
# Copyright 2020 Gentoo Authors
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit qmake-utils
inherit cmake xdg
DESCRIPTION="simple, sleek QT based DE for wayland using wayfire"
DESCRIPTION="Simple, sleek QT based DE for wayland using wayfire"
HOMEPAGE="https://gitlab.com/cubocore/paper/paperdesktop"
@@ -13,10 +13,10 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/cubocore/paper/paperdesktop"
else
COMMIT=960ff1e31a48e96e10afa0459183e52fbea8f2de
COMMIT=65c755306688203ddc32bbc099ba1de03166cde9
SRC_URI="https://gitlab.com/cubocore/paper/paperdesktop/-/archive/${COMMIT}/paperdesktop-${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/paperdesktop-${COMMIT}
KEYWORDS="~amd64 ~x86"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
@@ -25,36 +25,29 @@ SLOT="0"
DEPEND="
dev-libs/libdbusmenu-qt
dev-libs/wayland
dev-qt/designer:5
dev-qt/qtcore:5
dev-qt/qtgui:5[wayland,X]
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5[X]
dev-qt/qtsvg:5
gui-libs/libcprime
gui-libs/libcsys
"
RDEPEND="${DEPEND}
gui-wm/wayfire[X]
x11-misc/qt5ct
"
BDEPEND="
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}"/${PN}-0_p20201107-build.patch )
src_prepare() {
default
sed -e "s:/lib/:/$(get_libdir)/:" \
-i libpaperdesktop/core/core.pro \
-i libpaperdesktop/gui/gui.pro \
-i libpapershell-wl/libpapershell-wl.pro \
-i libpaperprime/libpaperprime.pro || die
cmake_src_prepare
xdg_src_prepare
}
src_compile() {
eqmake5 paperdesktop.pro
emake
}
src_install() {
emake INSTALL_ROOT="${ED}" install
src_configure() {
local mycmakeargs=(
-DPKGSHAREDPATH="${EPREFIX}/usr/share/paperde"
-DPKGCONFPATH="${EPREFIX}/etc/xdg/paperde"
)
cmake_src_configure
}