| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.7.2 | 8 | ~amd64 ~x86 | 0.7 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
MY_PV=$(ver_cut 1-2)
DESCRIPTION="An implementation of the Infinote protocol written in GObject-based C"
HOMEPAGE="https://gobby.github.io/"
SRC_URI="https://github.com/gobby/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
http://releases.0x539.de/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0.7"
KEYWORDS="~amd64 ~x86"
IUSE="avahi doc gtk +gtk3 server static-libs"
REQUIRED_USE="
exactly-one-of ( gtk gtk3 )
"
RDEPEND="dev-libs/glib:2
dev-libs/libxml2
net-libs/gnutls
sys-libs/pam
avahi? ( net-dns/avahi )
gtk3? ( x11-libs/gtk+:3 )
gtk? ( x11-libs/gtk+:2 )"
DEPEND="${RDEPEND}
acct-user/infinote
acct-group/infinote
net-misc/gsasl
virtual/pkgconfig
sys-devel/gettext
doc? ( dev-util/gtk-doc )"
DOCS=( AUTHORS ChangeLog NEWS README.md TODO )
#pkg_setup() {
#if use server ; then
# enewgroup infinote 100
# enewuser infinote 100 /bin/bash /var/lib/infinote infinote
#fi
#
#if use gtk && use gtk3; then
# eerror "You can select either gtk or gtk3, but not both at the same time" && die
#fi
#}
src_configure() {
./autogen.sh \
$(use_enable doc gtk-doc) \
$(use_with gtk inftextgtk) \
$(use_with gtk infgtk) \
$(use_with gtk ) \
$(use_with gtk3) \
$(use_with server infinoted) \
$(use_with avahi) \
$(use_with avahi libdaemon)
}
src_install() {
emake DESTDIR="${D}" install
if use server ; then
newinitd "${FILESDIR}/infinoted.initd" infinoted
newconfd "${FILESDIR}/infinoted.confd" infinoted
keepdir /var/lib/infinote
fowners infinote:infinote /var/lib/infinote
fperms 770 /var/lib/infinote
dosym "${D}/usr/bin/infinoted-${MY_PV}" "${D}/usr/bin/infinoted"
elog "Add local users who should have local access to the documents"
elog "created by infinoted to the infinote group."
elog "The documents are saved in /var/lib/infinote per default."
fi
}
dev-libs/glib:2 dev-libs/libxml2 net-libs/gnutls sys-libs/pam avahi? ( net-dns/avahi ) gtk3? ( x11-libs/gtk+:3 ) gtk? ( x11-libs/gtk+:2 ) acct-user/infinote acct-group/infinote net-misc/gsasl virtual/pkgconfig sys-devel/gettext doc? ( dev-util/gtk-doc )
dev-libs/glib:2 dev-libs/libxml2 net-libs/gnutls sys-libs/pam avahi? ( net-dns/avahi ) gtk3? ( x11-libs/gtk+:3 ) gtk? ( x11-libs/gtk+:2 )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libinfinity-0.7.2.tar.gz | 1134483 bytes |
http://releases.0x539.de/libinfinity/libinfinity-0.7.2.tar.gz https://github.com/gobby/libinfinity/archive/0.7.2.tar.gz |