diff options
| -rw-r--r-- | gentoo/pica-client-0.6.ebuild | 54 | ||||
| -rw-r--r-- | gentoo/pica-node-0.6.ebuild | 49 | ||||
| -rwxr-xr-x | gentoo/pica-pica-9999.ebuild | 134 |
3 files changed, 134 insertions, 103 deletions
diff --git a/gentoo/pica-client-0.6.ebuild b/gentoo/pica-client-0.6.ebuild deleted file mode 100644 index 36b263b..0000000 --- a/gentoo/pica-client-0.6.ebuild +++ /dev/null @@ -1,54 +0,0 @@ - # Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -inherit eutils - -DESCRIPTION="Pica Pica Messenger" -HOMEPAGE="http://picapica.im/" -SRC_URI="http://picapica.im/pica-pica-${PV}.tar.gz" - -LICENSE="GPL-3+" -SLOT="0" - -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND=">=dev-libs/openssl-0.9.8 - >dev-qt/qtcore-4.0.0 - >dev-qt/qtgui-4.0.0 - >dev-qt/qtsql-4.0.0[sqlite] - virtual/pkgconfig - x11-misc/xdg-utils" - -RDEPEND="${DEPEND}" - -S="${WORKDIR}/pica-pica-${PV}" - -src_configure() { - econf --disable-node --disable-menuitem -} - -src_install() { - emake DESTDIR="${D}" install || die "Install failed" - #dodoc README || die -} - -pkg_postinst() { - xdg-icon-resource install --size 32 "${S}/pica-client/picapica-icon-sit.png" pica-client - xdg-icon-resource install --size 22 "${S}/pica-client/picapica-icon-sit.png" pica-client - xdg-icon-resource install --size 64 "${S}/pica-client/picapica-icon-sit.png" pica-client - - xdg-desktop-menu install "${S}/pica-client/pica-client.desktop" -} - -pkg_postrm() { - xdg-icon-resource uninstall --size 32 pica-client - xdg-icon-resource uninstall --size 22 pica-client - xdg-icon-resource uninstall --size 64 pica-client - - xdg-desktop-menu uninstall pica-client.desktop -} - diff --git a/gentoo/pica-node-0.6.ebuild b/gentoo/pica-node-0.6.ebuild deleted file mode 100644 index 35ac482..0000000 --- a/gentoo/pica-node-0.6.ebuild +++ /dev/null @@ -1,49 +0,0 @@ - # Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -inherit eutils - -DESCRIPTION="Node for Pica Pica distributed decentralized IM system" -HOMEPAGE="http://picapica.im/" -SRC_URI="http://picapica.im/pica-pica-${PV}.tar.gz" - -LICENSE="GPL-3+" -SLOT="0" - -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND=">=dev-libs/openssl-0.9.8 - >=dev-db/sqlite-3.7.0" - -RDEPEND="${DEPEND}" - -S="${WORKDIR}/pica-pica-${PV}" - -src_configure() { - # We have optional perl, python and ruby support - econf --disable-client --localstatedir=/var -} - -src_install() { - emake DESTDIR="${D}" install || die "Install failed" - newinitd "${S}/gentoo/gentoo_initscript" ${PN} - #dodoc README || die -} - -pkg_preinst() { -# enewgroup pica-node - enewuser pica-node - fowners -R pica-node:pica-node "/var/lib/pica-node" - - dodir "/var/log/pica-node" - fowners -R pica-node:pica-node "/var/log/pica-node" -} - -pkg_postinst() { - - elog "Set announced_addr value to your IP address in config file before running pica-node" -} diff --git a/gentoo/pica-pica-9999.ebuild b/gentoo/pica-pica-9999.ebuild new file mode 100755 index 0000000..284bf0f --- /dev/null +++ b/gentoo/pica-pica-9999.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=8 + +inherit autotools desktop git-r3 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/antonsviridenko/pica-pica.git" + SRC_URI="" +else + SRC_URI="http://picapica.im/pica-pica-${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Pica Pica Messenger and Node" +HOMEPAGE="http://picapica.im/" + +LICENSE="GPL-3" +SLOT="0" + +IUSE="+client node qt4 +qt5 upnp +vaapi pulseaudio X" + +DEPEND=">=dev-libs/openssl-1.0.2r + upnp? ( >=net-libs/miniupnpc-2.0 ) + !net-im/pica-node + !net-im/pica-client + + node? ( + >=dev-db/sqlite-3.7.0 + >=dev-libs/libevent-2.1.6 + ) + + client? ( + qt4? ( + >dev-qt/qtgui-4.0.0 + >dev-qt/qtcore-4.0.0 + >dev-qt/qtsql-4.0.0[sqlite] + ) + qt5? ( + >dev-qt/qtcore-5.10.0 + >dev-qt/qtwidgets-5.10.0 + >dev-qt/qtgui-5.10.0 + >dev-qt/qtnetwork-5.10.0 + >dev-qt/qtsql-5.10.0[sqlite] + ) + virtual/pkgconfig + x11-misc/xdg-utils + media-sound/alsa-utils + dev-qt/qtchooser + + media-libs/alsa-lib + media-libs/speexdsp + + # audio and video calls: FFmpeg does the capturing, encoding, + # decoding and playback. v4l for cameras, alsa for the ALSA + # driver, opus for the audio codec and x264 for the video one - + # there is no native H.264 encoder to fall back on, so without + # it software video encoding is not possible at all. + >=media-video/ffmpeg-4.2:=[alsa,opus,v4l,x264,pulseaudio?,vaapi?] + + pulseaudio? ( media-libs/libpulse ) + + vaapi? ( + media-libs/libva:=[drm(+),X?] + media-libs/libglvnd[X?] + X? ( x11-libs/libX11 ) + ) + )" + +RDEPEND="${DEPEND} + node? ( + acct-user/pica-node + acct-group/pica-node + )" + +S="${WORKDIR}/pica-pica-${PV}" + +if [[ ${PV} == "9999" ]] ; then +src_prepare() { + eapply_user + eautoreconf -i +} +fi + +src_configure() { + qtflags="--with-qt=qt5" + if use qt5; then + qtflags=$(use_with qt5 qt qt5) + elif use qt4; then + qtflags=$(use_with qt4 qt qt4) + fi + + # VAAPI and the PulseAudio device listing are autodetected by + # configure, so they have to be asked for explicitly - otherwise the + # USE flags would only say what may be linked, not what is. The X11 + # rendering path is part of VAAPI and configure refuses it on its own. + local vaapiflags="--disable-vaapi --disable-vaapi-x11" + if use vaapi; then + vaapiflags="--enable-vaapi $(use_enable X vaapi-x11)" + fi + + econf $(use_with upnp miniupnpc) $(use_enable client) $(use_enable node) $qtflags \ + ${vaapiflags} $(use_enable pulseaudio pulse) +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" + use node && newinitd "${FILESDIR}/pica-node-initd" pica-node + use node && newconfd "${FILESDIR}/pica-node-confd" pica-node + domenu "${S}/pica-client/pica-client.desktop" + newicon -s 16 "${S}/pica-client/icons/icon_16x16.png" pica-client.png + newicon -s 32 "${S}/pica-client/icons/icon_32x32.png" pica-client.png + newicon -s 48 "${S}/pica-client/icons/icon_48x48.png" pica-client.png + newicon -s 256 "${S}/pica-client/picapica-icon-fly.png" pica-client.png +} + +pkg_preinst() { + + if use node; then + fowners -R pica-node:pica-node "/var/lib/pica-node" + + dodir "/var/log/pica-node" + fowners -R pica-node:pica-node "/var/log/pica-node" + fi +} + +pkg_postinst() { + + use node && elog "Set the announced_addr value to your IP address in a config file before running the pica-node" +} + + |
