-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,658 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
cosmic-base/cosmic-applets/cosmic-applets-1.0.0_alpha_rc4.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
EAPI=8 | ||
|
||
inherit cargo xdg | ||
|
||
DESCRIPTION="Applets for COSMIC panel" | ||
HOMEPAGE="https://github.com/pop-os/cosmic-applets" | ||
|
||
COMMIT="104a608cf1d55b5b8696ada431e77b96602242aa" | ||
SRC_URI=" | ||
https://github.com/pop-os/cosmic-applets/archive/${COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz | ||
https://github.com/aladmit/cosmic-overlay/releases/download/${PV}/${P}-vendor.tar.xz" | ||
|
||
S="${WORKDIR}/${PN}-${COMMIT}" | ||
|
||
LICENSE="GPL-3" | ||
# deps | ||
LICENSE+=" 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 | ||
CC0-1.0 GPL-3 GPL-3+ ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB" | ||
|
||
SLOT="0" | ||
|
||
KEYWORDS="amd64 arm64" | ||
|
||
BDEPEND=" | ||
dev-build/just | ||
dev-libs/libinput | ||
dev-libs/wayland | ||
dev-util/pkgconf | ||
media-libs/libpulse | ||
media-libs/mesa[opengl] | ||
sys-apps/dbus | ||
virtual/udev | ||
x11-libs/libxkbcommon | ||
" | ||
|
||
RDEPEND="cosmic-base/cosmic-icons" | ||
|
||
PATCHES=( "${FILESDIR}/justfile.patch" ) | ||
|
||
ECARGO_VENDOR="${WORKDIR}/vendor" | ||
|
||
src_unpack() { | ||
cargo_src_unpack | ||
} | ||
|
||
src_configure() { | ||
cargo_src_configure | ||
|
||
# use vendored crates | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.gentoo/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/directory = .*/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.crates-io/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/replace-with = "gentoo"/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/local-registry = "\/nonexistent"/d' || die | ||
cat "${WORKDIR}/config.toml" >> "${ECARGO_HOME}/config.toml" || die | ||
} | ||
|
||
src_compile() { | ||
cargo_src_compile | ||
} | ||
|
||
src_preinst() { | ||
xdg_pkg_preinst | ||
} | ||
|
||
src_install() { | ||
# replace COSMIC with X-COSMIC | ||
find ${S} -type f -name "*.desktop" -exec sed -i '/^Categories=/ s/COSMIC/X-COSMIC/g' {} + | ||
just \ | ||
prefix="${D}/usr" \ | ||
target="" \ | ||
targetdir="$(cargo_target_dir)" \ | ||
install || die | ||
} | ||
|
||
src_postinst() { | ||
xdg_pkg_postinst | ||
} | ||
|
||
src_postrm() { | ||
xdg_pkg_postrm | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
cosmic-base/cosmic-applibrary/cosmic-applibrary-1.0.0_alpha_rc4.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
EAPI=8 | ||
|
||
inherit cargo xdg | ||
|
||
DESCRIPTION="COSMIC App Library" | ||
HOMEPAGE="https://github.com/pop-os/cosmic-applibrary" | ||
|
||
COMMIT="676656da1eca2110db22f11f5a26e1d70628fdbd" | ||
SRC_URI=" | ||
https://github.com/pop-os/cosmic-applibrary/archive/${COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz | ||
https://github.com/aladmit/cosmic-overlay/releases/download/${PV}/${P}-vendor.tar.xz" | ||
|
||
S="${WORKDIR}/${PN}-${COMMIT}" | ||
|
||
LICENSE="GPL-3" | ||
# deps | ||
LICENSE+=" 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 | ||
CC0-1.0 GPL-3 GPL-3+ ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB" | ||
|
||
SLOT="0" | ||
|
||
KEYWORDS="amd64 arm64" | ||
|
||
BDEPEND=" | ||
dev-libs/wayland | ||
dev-util/pkgconf | ||
x11-libs/libxkbcommon | ||
" | ||
|
||
ECARGO_VENDOR="${WORKDIR}/vendor" | ||
|
||
src_unpack() { | ||
cargo_src_unpack | ||
} | ||
|
||
src_configure() { | ||
cargo_src_configure | ||
|
||
# use vendored crates | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.gentoo/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/directory = .*/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.crates-io/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/replace-with = "gentoo"/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/local-registry = "\/nonexistent"/d' || die | ||
cat "${WORKDIR}/config.toml" >> "${ECARGO_HOME}/config.toml" || die | ||
} | ||
|
||
src_compile() { | ||
export VERGEN_GIT_COMMIT_DATE=$(date --utc +'%Y-%m-%d') | ||
export VERGEN_GIT_SHA=${COMMIT} | ||
|
||
cargo_src_compile | ||
} | ||
|
||
src_preinst() { | ||
xdg_pkg_preinst | ||
} | ||
|
||
src_install() { | ||
# replace COSMIC with X-COSMIC | ||
find ${S} -type f -name "*.desktop" -exec sed -i '/^Categories=/ s/COSMIC/X-COSMIC/g' {} + | ||
just \ | ||
prefix="${D}/usr" \ | ||
bin-src="$(cargo_target_dir)/cosmic-app-library" \ | ||
install || die | ||
} | ||
|
||
src_postinst() { | ||
xdg_pkg_postinst | ||
} | ||
|
||
src_postrm() { | ||
xdg_pkg_postrm | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
EAPI=8 | ||
|
||
inherit cargo xdg | ||
|
||
DESCRIPTION="COSMIC Background" | ||
HOMEPAGE="https://github.com/pop-os/cosmic-bg" | ||
|
||
COMMIT="fd44edf79b5ffbced27540fd222e37aa05daeeba" | ||
SRC_URI=" | ||
https://github.com/pop-os/cosmic-bg/archive/${COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz | ||
https://github.com/aladmit/cosmic-overlay/releases/download/${PV}/${P}-vendor.tar.xz" | ||
|
||
S="${WORKDIR}/${PN}-${COMMIT}" | ||
|
||
LICENSE="GPL-3" | ||
# deps | ||
LICENSE+=" 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions | ||
BSD BSD-2 Boost-1.0 CC0-1.0 GPL-3 GPL-3+ ISC MIT MPL-2.0 | ||
Unicode-DFS-2016 Unlicense ZLIB" | ||
|
||
SLOT="0" | ||
|
||
KEYWORDS="amd64 arm64" | ||
|
||
# add optional mold | ||
BDEPEND=" | ||
dev-build/just | ||
dev-lang/nasm | ||
dev-libs/wayland | ||
dev-util/pkgconf | ||
x11-libs/libxkbcommon | ||
" | ||
|
||
ECARGO_VENDOR="${WORKDIR}/vendor" | ||
|
||
src_unpack() { | ||
cargo_src_unpack | ||
} | ||
|
||
src_configure() { | ||
cargo_src_configure | ||
|
||
# use vendored crates | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.gentoo/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/directory = .*/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.crates-io/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/replace-with = "gentoo"/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/local-registry = "\/nonexistent"/d' || die | ||
cat "${WORKDIR}/config.toml" >> "${ECARGO_HOME}/config.toml" || die | ||
} | ||
|
||
src_compile() { | ||
export VERGEN_GIT_COMMIT_DATE=$(date --utc +'%Y-%m-%d') | ||
export VERGEN_GIT_SHA=${COMMIT} | ||
|
||
cargo_src_compile | ||
} | ||
|
||
src_preinst() { | ||
xdg_pkg_preinst | ||
} | ||
|
||
src_install() { | ||
# replace COSMIC with X-COSMIC | ||
find ${S} -type f -name "*.desktop" -exec sed -i '/^Categories=/ s/COSMIC/X-COSMIC/g' {} + | ||
just \ | ||
prefix="${D}/usr" \ | ||
bin-src="$(cargo_target_dir)/${PN}" \ | ||
install || die | ||
} | ||
|
||
src_postinst() { | ||
xdg_pkg_postinst | ||
} | ||
|
||
src_postrm() { | ||
xdg_pkg_postrm | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
cosmic-base/cosmic-comp/cosmic-comp-1.0.0_alpha_rc4.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
EAPI=8 | ||
|
||
inherit cargo | ||
|
||
DESCRIPTION="Compositor for the COSMIC desktop environment " | ||
HOMEPAGE="https://github.com/pop-os/cosmic-comp" | ||
|
||
COMMIT="e3b41c5c554cc5aadf44183866ff4df7c2957d09" | ||
SRC_URI=" | ||
https://github.com/pop-os/cosmic-comp/archive/${COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz | ||
https://github.com/aladmit/cosmic-overlay/releases/download/${PV}/${P}-vendor.tar.xz" | ||
|
||
S="${WORKDIR}/${PN}-${COMMIT}" | ||
|
||
LICENSE="GPL-3" | ||
# deps | ||
LICENSE+=" 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions | ||
BSD BSD-2 Boost-1.0 CC0-1.0 GPL-3 ISC MIT MPL-2.0 OFL-1.1 | ||
Unicode-3.0 Unicode-DFS-2016 Unlicense ZLIB" | ||
|
||
SLOT="0" | ||
|
||
KEYWORDS="amd64 arm64" | ||
|
||
BDEPEND=" | ||
dev-build/just | ||
dev-libs/libinput | ||
dev-libs/wayland | ||
media-libs/fontconfig | ||
media-libs/mesa[opengl] | ||
sys-apps/systemd | ||
sys-auth/seatd | ||
virtual/udev | ||
x11-libs/libxcb | ||
x11-libs/libxkbcommon | ||
x11-libs/pixman | ||
" | ||
|
||
RDEPEND=" | ||
dev-libs/wayland | ||
media-libs/mesa[opengl] | ||
" | ||
|
||
ECARGO_VENDOR="${WORKDIR}/vendor" | ||
|
||
src_unpack() { | ||
cargo_src_unpack | ||
} | ||
|
||
src_configure() { | ||
cargo_src_configure | ||
|
||
# use vendored crates | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.gentoo/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/directory = .*/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/source.crates-io/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/replace-with = "gentoo"/d' || die | ||
sed -i "${ECARGO_HOME}/config.toml" -e '/local-registry = "\/nonexistent"/d' || die | ||
cat "${WORKDIR}/config.toml" >> "${ECARGO_HOME}/config.toml" || die | ||
} | ||
|
||
src_compile() { | ||
export VERGEN_GIT_COMMIT_DATE=$(date --utc +'%Y-%m-%d') | ||
export VERGEN_GIT_SHA=${COMMIT} | ||
|
||
cargo_src_compile | ||
} | ||
|
||
src_install() { | ||
# replace COSMIC with X-COSMIC | ||
find ${S} -type f -name "*.desktop" -exec sed -i '/^Categories=/ s/COSMIC/X-COSMIC/g' {} + | ||
emake \ | ||
prefix="${D}/usr" \ | ||
sysconfdir="${D}/etc" \ | ||
CARGO_TARGET_DIR="$(cargo_target_dir)" \ | ||
TARGET="" install || die | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.