Giter Club home page Giter Club logo

Comments (9)

shdown avatar shdown commented on June 4, 2024

I think widget-examples should go to /usr/share/doc/luastatus/examples or something. Don't know about the password, I don't use Gentoo and have no time to install it and test, sorry. @seamus-45, have you been asked password?

from luastatus.

itspec-ru avatar itspec-ru commented on June 4, 2024

console output:

# ebuild ./luastatus-9999.ebuild install
 * checking ebuild checksums ;-) ...                                                                                    [ ok ]
>>> Unpacking source...
 * Fetching [email protected]:shdown/luastatus.git ...
git fetch [email protected]:shdown/luastatus.git +HEAD:refs/git-r3/HEAD
Permission denied (publickey).
fatal: Could not read from remote repository.

must be
EGIT_REPO_URI="git://github.com/shdown/${PN}.git"
or
EGIT_REPO_URI="https://github.com/shdown/${PN}"

gentoo portage uses this URI scheme

from luastatus.

itspec-ru avatar itspec-ru commented on June 4, 2024

I think widget-examples should go to /usr/share/doc/luastatus/examples or something.

You are right. Examples placed in /usr/share/doc/${PN}/.
But solutions placed in /usr/share/${PN}. Forexample git placed some scripts in /usr/share/git/contrib
Probably need to put the scripts in /usr/share/doc/${PN}/widget-examples/{dwm,i3,lemonbar}

from luastatus.

shdown avatar shdown commented on June 4, 2024

OK, EGIT_REPO_URI thing should be fixed now. Please try out the new ebuild.

from luastatus.

itspec-ru avatar itspec-ru commented on June 4, 2024

OK.
I'am change my ebuild to install examples to /usr/share/doc/${PF}/widget-examples/{dwm,i3,lemonbar}
if "doc" USE flag is set

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6
CMAKE_IN_SOURCE_BUILD=1
inherit cmake-utils

DESCRIPTION="Universal status bar content generator"
HOMEPAGE="https://github.com/shdown/luastatus"

if [[ ${PV} == *9999* ]]; then
	inherit git-r3
	SRC_URI=""
	EGIT_REPO_URI="https://github.com/shdown/${PN}"
	KEYWORDS="~amd64 ~x86"
else
	SRC_URI="https://github.com/shdown/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="amd64 x86"
fi

BARLIBS="
	${PN}_barlibs_dwm
	${PN}_barlibs_i3
	${PN}_barlibs_lemonbar
"

PLUGINS="
	+${PN}_plugins_alsa
	+${PN}_plugins_fs
	+${PN}_plugins_mpd
	+${PN}_plugins_pipe
	+${PN}_plugins_timer
	+${PN}_plugins_xkb
	+${PN}_plugins_xtitle
"

LICENSE="LGPL-3+"
SLOT="0"
IUSE="doc luajit ${BARLIBS} ${PLUGINS}"

DEPEND=""
RDEPEND="${DEPEND}
	luajit? ( dev-lang/luajit:2 )
	!luajit? ( dev-lang/lua:0 )
	${PN}_plugins_xtitle? ( x11-libs/libxcb x11-libs/xcb-util-wm )
	${PN}_plugins_xkb? ( x11-libs/libX11 )
	${PN}_plugins_alsa? ( media-libs/alsa-lib )
	${PN}_barlibs_dwm? ( x11-libs/libxcb )
	${PN}_barlibs_i3? ( >=dev-libs/yajl-2.1.0 )
"

src_configure() {
	local mycmakeargs=(
		$(use luajit && echo -DWITH_LUA_LIBRARY=luajit)
		-DBUILD_BARLIB_DWM=$(usex ${PN}_barlibs_dwm)
		-DBUILD_BARLIB_I3=$(usex ${PN}_barlibs_i3)
		-DBUILD_BARLIB_LEMONBAR=$(usex ${PN}_barlibs_lemonbar)
		-DBUILD_PLUGIN_ALSA=$(usex ${PN}_plugins_alsa)
		-DBUILD_PLUGIN_FS=$(usex ${PN}_plugins_fs)
		-DBUILD_PLUGIN_MPD=$(usex ${PN}_plugins_mpd)
		-DBUILD_PLUGIN_PIPE=$(usex ${PN}_plugins_pipe)
		-DBUILD_PLUGIN_TIMER=$(usex ${PN}_plugins_timer)
		-DBUILD_PLUGIN_XKB=$(usex ${PN}_plugins_xkb)
		-DBUILD_PLUGIN_XTITLE=$(usex ${PN}_plugins_xtitle)
	)
	cmake-utils_src_configure
}

src_install() {
    default

    local wm
    if use doc ; then
        dodir /usr/share/doc/${PF}/widget-examples
        docinto widget-examples

        for i in ${BARLIBS}
        do
            if use ${i}
            then
                wm=$(echo ${i} | sed -e 's:'${PN}'_barlibs_::')
                dodoc -r contrib/widget-examples/${wm}
                docompress -x /usr/share/doc/${PF}/widget-examples/${wm}
            fi
        done

    fi
}

from luastatus.

shdown avatar shdown commented on June 4, 2024

wm=$(echo ${i} | sed -e 's:'${PN}'_barlibs_::')

Hey, bash is actually capable of this: wm=${i#${PN}_barlibs_}

If you want it to be in the in-tree ebuild, please open a pull request.

from luastatus.

seamus-45 avatar seamus-45 commented on June 4, 2024

USE flag should be "examples". I'll open pull request after weekend.

from luastatus.

shdown avatar shdown commented on June 4, 2024

Thank you, @seamus-45.

from luastatus.

itspec-ru avatar itspec-ru commented on June 4, 2024

@seamus-45
You are right. You may use my corrected version
https://bitbucket.org/gentoo-overlay/itspec/raw/63ce4b49fd45d437ba0d7a251316b93eb4feeed3/x11-misc/luastatus/luastatus-9999-r1.ebuild

from luastatus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.