* Profanity Notifications?
@ 2015-01-22 2:04 Logen Kain
2015-01-22 2:07 ` Logen Kain
0 siblings, 1 reply; 4+ messages in thread
From: Logen Kain @ 2015-01-22 2:04 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 1779 bytes --]
Someone brought to my attention that notifications don't seem to work with
Profanity so I decided to look at the pkg build:
# Template file for 'profanity'
2 pkgname=profanity
3 version=0.4.5
4 revision=1
5 # Package build options
6 build_options="notify xscreensaver"
7 build_style=gnu-configure
8 configure_args="$(vopt_enable notify notifications) $(vopt_with
xscreensaver)"
9 hostmakedepends="pkg-config"
10 makedepends="glib-devel expat-devel ncurses-devel libgcrypt-devel
libotr-devel
11 libcurl-devel libstrophe-devel $(vopt_if notifications libnotify-devel)
12 $(vopt_if xscreensaver libXScrnSaver-devel)"
13 short_desc="A console based XMPP client"
14 <email deleted due to being placed on google.
15 license="GPL-3"
16 homepage="http://www.profanity.im/"
17 distfiles="http://www.profanity.im/${pkgname}-${version}.tar.gz"
18
checksum=7436b38d03da0645f5cdb3ca3921b974a760ba68fa92e4def82519d759c7fc63
So I'm looking at the "vopt" commands and trying to wrap my head around it.
The best I can tell is that "vopt" makes it easier to select a build option
if I want to compile the package myself.
so... ./xbps-src -o "notify profanity" followed by "./xbps-src pkg
profanity" will build it with notify support correct?
Furthermore doing a "./xbps-src show-options foo" show both notify and
xscreensaver to be off. Looking at "$(vopt_enable notify notifications",
does this mean (pseudo code) "if enabled then notifications"? Reading from
the manual the enable should mean that build option "notify" is enabled by
default, or perhaps I misunderstand and, as I wrote above, it actually
means "if enabled then do this enable-<flag>"
If someone can clear this up in my head I'd appreciate it.
[-- Attachment #1.2: Type: text/html, Size: 3407 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Profanity Notifications?
2015-01-22 2:04 Profanity Notifications? Logen Kain
@ 2015-01-22 2:07 ` Logen Kain
2015-01-22 6:45 ` Juan RP
0 siblings, 1 reply; 4+ messages in thread
From: Logen Kain @ 2015-01-22 2:07 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 156 bytes --]
Unless I'm missing something this group doesn't allow us to edit our posts.
Changing the topic to something about "vopt" would probably be more useful.
[-- Attachment #1.2: Type: text/html, Size: 178 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Profanity Notifications?
2015-01-22 2:07 ` Logen Kain
@ 2015-01-22 6:45 ` Juan RP
2015-01-22 20:58 ` Logen Kain
0 siblings, 1 reply; 4+ messages in thread
From: Juan RP @ 2015-01-22 6:45 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 584 bytes --]
I've improved the package build options section just to be more clear:
https://github.com/voidlinux/void-packages#package-build-options
- `build_options_default` is what makes the pkg build with those options by
default, unless the
user disables them.
- use `./xbps-src -o opt,~opt2 <target> pkg` to build a pkg with your
custom options.
- options can also be specified in `etc/conf`.
The `vopt` functions are helpers to conditionalize actions depending on the
option being tested,
the manual documents this correctly, please refer to it for more
information.
[-- Attachment #1.2: Type: text/html, Size: 627 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Profanity Notifications?
2015-01-22 6:45 ` Juan RP
@ 2015-01-22 20:58 ` Logen Kain
0 siblings, 0 replies; 4+ messages in thread
From: Logen Kain @ 2015-01-22 20:58 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 724 bytes --]
Thanks, that clears it up a bit.
On Thursday, January 22, 2015 at 12:45:58 AM UTC-6, Juan RP wrote:
>
>
> I've improved the package build options section just to be more clear:
>
> https://github.com/voidlinux/void-packages#package-build-options
>
> - `build_options_default` is what makes the pkg build with those options
> by default, unless the
> user disables them.
> - use `./xbps-src -o opt,~opt2 <target> pkg` to build a pkg with your
> custom options.
> - options can also be specified in `etc/conf`.
>
> The `vopt` functions are helpers to conditionalize actions depending on
> the option being tested,
> the manual documents this correctly, please refer to it for more
> information.
>
[-- Attachment #1.2: Type: text/html, Size: 1425 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-22 20:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 2:04 Profanity Notifications? Logen Kain
2015-01-22 2:07 ` Logen Kain
2015-01-22 6:45 ` Juan RP
2015-01-22 20:58 ` Logen Kain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).