Comments (9)
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.
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.
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.
OK, EGIT_REPO_URI
thing should be fixed now. Please try out the new ebuild.
from luastatus.
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.
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.
USE flag should be "examples". I'll open pull request after weekend.
from luastatus.
Thank you, @seamus-45.
from luastatus.
@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)
- [Request] Limited connectivity on network-linux plugin HOT 1
- [network-linux] signal_percent returns nil HOT 1
- Centering multiple widgets HOT 1
- signal_dbm does not update HOT 12
- using a different fork of lemonbar HOT 2
- mpd error HOT 2
- multiple intances of luastatus running HOT 9
- [request] display ethernet network's name HOT 9
- Is there a way to manually trigger the callback within a widget? HOT 10
- Simplifying the battery plugin HOT 4
- Некорректно работают вызовы из шелла HOT 1
- pulse plugin is disabled by default HOT 2
- Interconnection with sinx stats aggregator HOT 11
- "network-rate" uses "binary prefix" divisor (1024) rather than "si prefix" divisor (1000) HOT 1
- Could someone please verify/check my "new" mem-usage widget? HOT 2
- Segmentation fault when using mpd plugin HOT 1
- Error occurs when trying to use multiple widgets that use the mpd plugin HOT 2
- IMAP plugin not working HOT 2
- E539: Illegal character <,> HOT 2
- io.popen causing luastatus to hang HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luastatus.