diff options
| -rw-r--r-- | gui-apps/slstatus/slstatus-9999.ebuild (renamed from gui-apps/dwlb/dwlb-9999.ebuild) | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/gui-apps/dwlb/dwlb-9999.ebuild b/gui-apps/slstatus/slstatus-9999.ebuild index cb7c658..13104ba 100644 --- a/gui-apps/dwlb/dwlb-9999.ebuild +++ b/gui-apps/slstatus/slstatus-9999.ebuild @@ -1,7 +1,5 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -# -# Other ebuild here https://data.gpo.zugaina.org/imperium/gui-apps/dwlb/dwlb-9999.ebuild # NOTE: The comments in this file are for instruction and documentation. # They're not meant to appear with your final, production ebuild. Please @@ -29,15 +27,15 @@ inherit savedconfig toolchain-funcs git-r3 # https://codeberg.org/gentoo/gentoo/src/branch/master/gui-wm/dwl # Short one-line description of this package. -DESCRIPTION="Fork of dwlb, the status bar for dwl" +DESCRIPTION="Customized fork of the suckless modular status bar for window managers" # Homepage, not used by Portage directly but handy for developer reference -HOMEPAGE="https://codeberg.org/csobczak/dwlb" +HOMEPAGE="https://codeberg.org/csobczak/slstatus" # Point to any required sources; these will be automatically downloaded by # Portage. #SRC_URI="ftp://foo.example.org/${P}.tar.gz" -EGIT_REPO_URI="https://codeberg.org/csobczak/dwlb.git" +EGIT_REPO_URI="https://codeberg.org/csobczak/slstatus.git" EGIT_BRANCH="csobczak" # Source directory; the dir where the sources can be found (automatically @@ -50,7 +48,7 @@ EGIT_BRANCH="csobczak" # License of the package. This must match the name of file(s) in the # licenses/ directory. For complex license combination see the developer # docs on gentoo.org for details. -LICENSE="GPL-3" +LICENSE="ISC" # The SLOT variable is used to tell Portage if it's OK to keep multiple # versions of the same package installed at the same time. For example, @@ -100,38 +98,23 @@ IUSE="" # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. -RDEPEND=" - dev-libs/xwayland - dev-libs/xwayland-protocols -" +RDEPEND="x11-libs/libX11" # Build-time dependencies that need to be binary compatible with the system # being built (CHOST). These include libraries that we link against. # The below is valid if the same run-time depends are required to compile. #DEPEND="${RDEPEND}" -DEPEND=" - ${RDEPEND} - x11-base/xorg-proto -" +DEPEND="${RDEPEND}" # Build-time dependencies that are executed during the emerge process, and # only need to be present in the native build system (CBUILD). Example: #BDEPEND="virtual/pkgconfig" -BDEPEND=" - dev-util/wayland-scanner - virtual/pkgconfig -" - - -src_prepare() { - default - restore_config config.h -} +BDEPEND="" # The following src_configure function is implemented as default by portage, so # you only need to call it if you need a different behaviour. -#src_configure() { +src_configure() { # Most open-source packages use GNU autoconf for configuration. # The default, quickest (and preferred) way of running configure is: #econf @@ -150,7 +133,12 @@ src_prepare() { # Note the use of --infodir and --mandir, above. This is to make # this package FHS 2.2-compliant. For more information, see # https://wiki.linuxfoundation.org/lsb/fhs -#} + if [[ -f "${EROOT}/etc/portage/savedconfig/${CATEGORY}/${PF}" ]]; then + restore_config config.h + else + cp config.def.h config.h + fi +} # The following src_compile function is implemented as default by portage, so # you only need to call it, if you need different behaviour. @@ -163,7 +151,8 @@ src_compile() { # visual clue to others that the makefiles have bugs that have been # worked around. - emake CC="$(tc-getCC)" + tc-export CC + emake } # The following src_install function is implemented as default by portage, so @@ -193,7 +182,7 @@ src_install() { # Again, verify the Makefiles! We don't want anything falling # outside of ${D}. - emake PREFIX="${D}${EPREFIX}/usr" install + emake PREFIX="${ED}/usr" install save_config config.h } |
