[proaudio] [2315] liquidsoap bumped, modified runscript and new systemd service. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Revision: 2315
Author: emery
Date: 2012-11-17 21:13:07 +0100 (Sat, 17 Nov 2012)
Log Message:
-----------
liquidsoap bumped, modified runscript and new systemd service.
(Portage version: 2.1.11.31/svn/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
Modified Paths:
--------------
trunk/overlays/proaudio/media-radio/liquidsoap/ChangeLog
trunk/overlays/proaudio/media-radio/liquidsoap/Manifest
trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap.runscript
Added Paths:
-----------
trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap-at.service
trunk/overlays/proaudio/media-radio/liquidsoap/files/ocaml-4.patch
trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.1.ebuild
Removed Paths:
-------------
trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.0.ebuild
Modified: trunk/overlays/proaudio/media-radio/liquidsoap/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-radio/liquidsoap/ChangeLog 2012-11-17 17:36:43 UTC (rev 2314)
+++ trunk/overlays/proaudio/media-radio/liquidsoap/ChangeLog 2012-11-17 20:13:07 UTC (rev 2315)
@@ -2,6 +2,13 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*liquidsoap-1.0.1 (17 Nov 2012)
+
+ 17 Nov 2012; Emery Hemingway <liquidsoap@xxxxxxxxxxxxxxxxxxxx>
+ -liquidsoap-1.0.0.ebuild, +liquidsoap-1.0.1.ebuild, +files/ocaml-4.patch,
+ +files/liquidsoap-at.service, files/liquidsoap.runscript:
+ Bumped ebuild, modified runscript, new systemd service file
+
30 May 2012; Emery Hemingway <emery@xxxxxxxxxxx> liquidsoap-1.0.0.ebuild:
Moved to media-radio, minor configure changes
Modified: trunk/overlays/proaudio/media-radio/liquidsoap/Manifest
===================================================================
--- trunk/overlays/proaudio/media-radio/liquidsoap/Manifest 2012-11-17 17:36:43 UTC (rev 2314)
+++ trunk/overlays/proaudio/media-radio/liquidsoap/Manifest 2012-11-17 20:13:07 UTC (rev 2315)
@@ -1,5 +1,7 @@
-AUX liquidsoap.runscript 1140 RMD160 41cc31a875f5071bfb5cdf8697f4a25cbd27c8e5 SHA1 a89ac7c0fe42a972f3e639cbf6c0b951c5da7c30 SHA256 9d468ac2c7a76f6dd2902b18d6ac7b2de30350c26eb5dc8439bf445b6ecf8d3c
-DIST liquidsoap-1.0.0.tar.bz2 685380 RMD160 4b5c1ffb0c9fa09898b91ea7e4cd5789237c03f4 SHA1 f295fbf7d53e237d1b706875eb94a8c0dd670648 SHA256 b272db396ce1b9590405dd19f6e8bdd281dc747dabf30a03582eab7b2680787a
-EBUILD liquidsoap-1.0.0.ebuild 4689 RMD160 7b21e5d3f61a03564cd89a291d464055ac0e7298 SHA1 39248edb890887255d210bc8621050a3074095c7 SHA256 c0a04c716ff30f5e9df5c3694edeca6838347490dd815ff841ad485dad792683
-MISC ChangeLog 248 RMD160 ee3cf54e25c1d7cb9d975a43ef5363e9afa3506f SHA1 96b336ec250b71e8ec902ef794ea62ebc49d1b3c SHA256 dc41a0007ca287a2d03b89779ba76de1afde39e764be2c2cb4c403ca2495d488
-MISC metadata.xml 1180 RMD160 1397151ff292765f670e690a1a12ec7f703cadc0 SHA1 f7a9ab9ee7a1bdb0224393c412f0c329a2c791d3 SHA256 f730fa5c4d1b75fa6ff6816e5b9e911afc6f54c53c9edc4b4e22e4a56690f7f8
+AUX liquidsoap-at.service 209 SHA256 508fda29c7ac14b08375d0f7923dec92685560f0d3c264030a277e5dcb32e57e SHA512 2870e124b070fe6f7e02acedb36ec1a186367e3aaa77a0eeba8d61a04c690441f0d2b29ba27ef610303f29cb5c440ed6a03dba72f8b2eb240bb832a600033b15 WHIRLPOOL 42a5918d62c071005a694237029282a5cc29a3c2c012b23bca8976e757942e4dd3b32ef39c1ce4a6010c03438018bc783b95c257336cea16aebd25cc798eb3ec
+AUX liquidsoap.runscript 1329 SHA256 211ad856095619274d709f62bf83a8457ba2115c2e7ee04bccdeff174e8a1fdc SHA512 2dfcdf30e48692bfb477610d6b3f40043aa08acf9b13fbe1383aadc0db53ca6d58489197063483015a9e6651f012e8bae839c56d3bf19fe41bac7b894f943b4c WHIRLPOOL ae49bad9a53049a0284d4966f0bfaaae58648d3d4aaf1b0a0c75dce47ba3db51b591ed53422a83e286eda57fb583f380bf84af02f95882b9b3d21733dcfe4e74
+AUX ocaml-4.patch 955 SHA256 95b8bb94dbd611ef551c0d2d0cbaad610cd2d988f23834fd1d7b7b4ec00f07f0 SHA512 d6cd21565b26abcdbbae5349bc5e823dd037bda771d1a03c9ca21f58ad4692c0bcfa8eeb673bad9677440137a05d72ac29083941c1853571a75573a83bb874a7 WHIRLPOOL 2f270517b1464a305129212fb097d2b460c23395da623f3a11c48113178fb1d183bcf2f0d19de11745907e5b435cac27c6f4c1496b2380f58d3ed29539d3b1ff
+DIST liquidsoap-1.0.1.tar.bz2 778062 SHA256 a9298811276eef4225c8759e9a9eb957c4b012e4960760d26eb0b0c2e2513eda SHA512 c5349ffec369cd0b0ccfa5dfa29cdde344f67572eef051f3671469d69baa90a6b94237551e6c6a027b02b5544228af4a3b40fc532852a3b9e60f94db8dbfc985 WHIRLPOOL 97973ad4118417c56575e0c1e517d8820a4b62dc59e3d81d1da53e60d77821e156856a4182d7418409f00a7a16de8c9faf7107ebad8ae100934b4e830a144f5e
+EBUILD liquidsoap-1.0.1.ebuild 4864 SHA256 d0046f629df3e8e901e400c5803f9b20fb78700c308682f03d12a8d6fee3b7be SHA512 094bbe0ff8ba44477fec18761736ff326626c15fe7f71b2647be1d97ef13366a939488a9577294a8f7be20a07838689a7f603e8562e529a9c493547e54998403 WHIRLPOOL 77e56a41f3469fed498f8b90672b9c87950b50bebf341bbe76080abd7f29025f9444465fc6b1932080ca7f4dc2170120ae18b162e906612bd448b459a269650b
+MISC ChangeLog 545 SHA256 5df25ff96050c057c1788a09fe7b512bafbf119b845c3d08f27cc8f3bf7ded03 SHA512 181ed6d290aaaf494f23550db85df5fb5d29bb98098d69f027dc095cd0abcf6aff7c26e14022317b512965c41c25583a3d845a13f53b3a7cdb651c8cd9a5b1f8 WHIRLPOOL 84853478fac5f070138c6b4695197f74449c503ef16878b59d18f1fa1ebfe88c347a4496e5d2106756c10e3ae439964b293e3856581fe9a7176f2c36b347c2b2
+MISC metadata.xml 1180 SHA256 f730fa5c4d1b75fa6ff6816e5b9e911afc6f54c53c9edc4b4e22e4a56690f7f8 SHA512 8aaef402612617f59f4551f3c782ff41a69e5f164e5c95a275279a26a58267fdc790e216937232333183f7ba809bd5c371ffbedb3b44977dcf3cb83d669f092d WHIRLPOOL c93b547a965da91f04b5b64f3c820e04087ace9e45609b3168fa6a7e422b216c8f2a68800f1b07f40a11bcca868d80a32665fac1e2357ed8ad1fd8c9a1c7c7fe
Added: trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap-at.service
===================================================================
--- trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap-at.service (rev 0)
+++ trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap-at.service 2012-11-17 20:13:07 UTC (rev 2315)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Liquidsoap %i.liq interpreter
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/liquidsoap /etc/liquidsoap/%i.liq
+User=liquidsoap
+Nice=-15
+
+[Install]
+WantedBy=multi-user.target
Modified: trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap.runscript
===================================================================
--- trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap.runscript 2012-11-17 17:36:43 UTC (rev 2314)
+++ trunk/overlays/proaudio/media-radio/liquidsoap/files/liquidsoap.runscript 2012-11-17 20:13:07 UTC (rev 2315)
@@ -4,7 +4,7 @@
scriptfile="/etc/liquidsoap/${script}.liq"
command=/usr/bin/liquidsoap
command_args="--daemon ${scriptfile}"
-start_stop_daemon_args="--user liquidsoap:liquidsoap"
+start_stop_daemon_args="--user liquidsoap:liquidsoap --nicelevel -15 "
pidfile="/var/run/liquidsoap/${script}.pid"
name=${RC_SVCNAME}
@@ -44,3 +44,10 @@
_script_exists || return 1
}
+start() {
+ start-stop-daemon --start \
+ ${start_stop_daemon_args} \
+ --make-pidfile ${pidfile} \
+ --exec ${command} \
+ -- ${command_args}
+}
Added: trunk/overlays/proaudio/media-radio/liquidsoap/files/ocaml-4.patch
===================================================================
--- trunk/overlays/proaudio/media-radio/liquidsoap/files/ocaml-4.patch (rev 0)
+++ trunk/overlays/proaudio/media-radio/liquidsoap/files/ocaml-4.patch 2012-11-17 20:13:07 UTC (rev 2315)
@@ -0,0 +1,23 @@
+diff -ur liquidsoap-1.0.1-original/Makefile.defs.in liquidsoap-1.0.1/Makefile.defs.in
+--- liquidsoap-1.0.1-original/Makefile.defs.in 2012-11-17 12:44:50.523532064 -0600
++++ liquidsoap-1.0.1/Makefile.defs.in 2012-11-17 12:45:27.051557788 -0600
+@@ -58,7 +58,7 @@
+ OCAML_MINOR=@OCAML_MINOR@
+ OCAML_REVISION=@OCAML_REVISION@
+ OCAML_HAS_FIRST_CLASS_MODULES=@OCAML_HAS_FIRST_CLASS_MODULES@
+-NEED_TCP_NODELAY=@NEED_TCP_NODELAY@
++NEED_TCP_NODELAY=
+
+ liquidsoap_PLUGINS=@PLUGINS@
+
+diff -ur liquidsoap-1.0.1-original/src/tools/liq_sockets.ml.in liquidsoap-1.0.1/src/tools/liq_sockets.ml.in
+--- liquidsoap-1.0.1-original/src/tools/liq_sockets.ml.in 2012-11-17 12:44:50.513531777 -0600
++++ liquidsoap-1.0.1/src/tools/liq_sockets.ml.in 2012-11-17 12:45:56.645391608 -0600
+@@ -20,6 +20,5 @@
+
+ *****************************************************************************)
+
+-@TCP_NODELAY_VALUE@
+-
++let set_tcp_nodelay fd v = Unix.setsockopt fd Unix.TCP_NODELAY v
+
Deleted: trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.0.ebuild
===================================================================
--- trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.0.ebuild 2012-11-17 17:36:43 UTC (rev 2314)
+++ trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.0.ebuild 2012-11-17 20:13:07 UTC (rev 2315)
@@ -1,166 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-## Will not build with ocaml-gstreamer
-# File "io/gstreamer_io.ml", line 23, characters 0-14:
-# Error: Unbound module Gstreamer
-#
-## ./configure finds GD and SDL no matter what, so they're not
-## optional
-
-EAPI=4
-inherit autotools eutils findlib
-
-DESCRIPTION="A swiss-army knife for multimedia streaming, notably used for netradios."
-HOMEPAGE="http://liquidsoap.fm/"
-SRC_URI="mirror://sourceforge/savonet/${P}.tar.bz2"
-LICENSE="GPL-2"
-
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="aacplus alsa ao doc dirac dssi faad +flac gavl graphics jack json ladspa +lame lastfm libsamplerate mad osc portaudio pulseaudio +shout soundtouch speex speech +taglib theora +unicode video voaac +vorbis xml"
-
-RDEPEND="dev-lang/ocaml
- dev-ml/ocaml-dtools
- dev-ml/ocaml-duppy
- dev-ml/ocaml-magic
- dev-ml/ocaml-mm
- dev-ml/pcre-ocaml
- media-fonts/dejavu
- dev-ml/gd4o
- dev-ml/ocamlsdl
- aacplus? ( dev-ml/ocaml-aacplus )
- alsa? ( dev-ml/ocaml-alsa )
- ao? ( dev-ml/ocaml-ao )
- dirac? ( dev-ml/ocaml-schroedinger )
- doc? ( dev-perl/XML-DOM )
- dssi? ( dev-ml/ocaml-dssi )
- faad? ( dev-ml/ocaml-faad )
- flac? ( dev-ml/ocaml-flac
- dev-ml/ocaml-ogg )
- gavl? ( dev-ml/ocaml-gavl )
- graphics? ( dev-ml/camlimages )
- jack? ( dev-ml/ocaml-bjack )
- json? ( dev-ml/yojson )
- ladspa? ( dev-ml/ocaml-ladspa )
- lame? ( dev-ml/ocaml-lame )
- lastfm? ( dev-ml/ocaml-lastfm )
- libsamplerate? ( dev-ml/ocaml-samplerate )
- mad? ( dev-ml/ocaml-mad )
- osc? ( dev-ml/ocaml-lo )
- portaudio? ( dev-ml/ocaml-portaudio )
- pulseaudio? ( dev-ml/ocaml-pulseaudio )
- shout? ( dev-ml/ocaml-cry )
- soundtouch? ( dev-ml/ocaml-soundtouch )
- speech? ( app-accessibility/festival
- media-sound/sox
- media-sound/normalize )
- speex? ( dev-ml/ocaml-speex
- dev-ml/ocaml-ogg )
- taglib? ( dev-ml/ocaml-taglib )
- theora? ( dev-ml/ocaml-theora )
- unicode? ( dev-ml/camomile )
- voaac? ( dev-ml/ocaml-voaacenc )
- vorbis? ( dev-ml/ocaml-vorbis\
- dev-ml/ocaml-ogg )
- xml? ( dev-ml/ocaml-xmlplaylist )"
-DEPEND="${RDEPEND}
- dev-ml/findlib
- virtual/pkgconfig"
-
-pkg_setup() {
- use doc || ewarn "The doc use flag is unset, html documentation will not be included."
- enewgroup ${PN}
- enewuser ${PN} -1 -1 /var/run/liquidsoap ${PN},audio
-}
-
-src_prepare() {
- einfo "Sandboxing Makefile.defs.in ..."
- sed -i 's/@exec_prefix@/${DESTDIR}@exec_prefix@/g' Makefile.defs.in
- sed -i 's/@libdir@/${DESTDIR}@libdir@/'g Makefile.defs.in
- sed -i 's/@mandir@/${DESTDIR}@mandir@/'g Makefile.defs.in
- sed -i 's/@sysconfdir@/${DESTDIR}@sysconfdir@/'g Makefile.defs.in
- sed -i 's/@localstatedir@/${DESTDIR}@localstatedir@/'g Makefile.defs.in
- sed -i 's/@datarootdir@/${DESTDIR}@datarootdir@/'g Makefile.defs.in
- sed -i 's/@datadir@/${DESTDIR}@datadir@/'g Makefile.defs.in
-
- einfo "Replacing tool check macros ..."
- sed -i 's/AC_CHECK_TOOL_STRICT/AC_CHECK_TOOL/g' m4/ocaml.m4
-
- AT_M4DIR="m4" eautoreconf
- eautomake
-}
-
-# Internal functions
-liquidsoap_use() {
- if use $1; then
- return 0
- else
- echo "--without-$1-dir"
- fi
-}
-liquidsoap_use_as() {
- if use $1; then
- return 0
- else
- echo "--without-$2-dir"
- fi
-}
-
-src_configure() {
- econf \
- --with-user="${PN}" \
- --with-group="${PN}" \
- --localstatedir="/var" \
- --with-default-font=/usr/share/fonts/dejavu/DejaVuSans.ttf \
- --without-gstreamer-dir \
- $(liquidsoap_use aacplus) \
- $(liquidsoap_use alsa) \
- $(liquidsoap_use ao) \
- $(liquidsoap_use_as dirac schroedinger) \
- $(liquidsoap_use dssi) \
- $(liquidsoap_use faad) \
- $(liquidsoap_use flac) \
- $(liquidsoap_use gavl) \
- $(liquidsoap_use_as graphics camlimages) \
- $(liquidsoap_use_as jack bjack) \
- $(liquidsoap_use ladspa) \
- $(liquidsoap_use lame) \
- $(liquidsoap_use lastfm) \
- $(liquidsoap_use_as libsamplerate samplerate) \
- $(liquidsoap_use mad) \
- $(liquidsoap_use_as osc lo) \
- $(liquidsoap_use portaudio) \
- $(liquidsoap_use pulseaudio) \
- $(use_enable graphics) \
- $(liquidsoap_use_as shout cry) \
- $(liquidsoap_use soundtouch) \
- $(liquidsoap_use speex) \
- $(liquidsoap_use taglib) \
- $(liquidsoap_use theora) \
- $(use_enable unicode camomile) \
- $(liquidsoap_use_as voaac voaacenc) \
- $(liquidsoap_use vorbis) \
- $(liquidsoap_use_as xml xmlplaylist)
- ## checks for python and pygtk, but hopefully
- ## things wont break if they're missing
-}
-
-src_install() {
- findlib_src_install
- keepdir /etc/${PN} /var/log/${PN}
- newinitd "${FILESDIR}/liquidsoap.runscript" ${PN}
- dodoc CHANGES README
- if use doc; then
- emake doc
- dohtml -r doc/html/*
- fi
-}
-
-pkg_postinst() {
- if use doc; then
- elog "For comprehensive documentation see"
- elog "file:///usr/share/doc/${P}/html/index.html"
- fi
-}
Added: trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.1.ebuild (rev 0)
+++ trunk/overlays/proaudio/media-radio/liquidsoap/liquidsoap-1.0.1.ebuild 2012-11-17 20:13:07 UTC (rev 2315)
@@ -0,0 +1,169 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+## Will not build with ocaml-gstreamer
+# File "io/gstreamer_io.ml", line 23, characters 0-14:
+# Error: Unbound module Gstreamer
+#
+## ./configure finds GD and SDL no matter what, so they're not
+## optional
+
+EAPI=4
+inherit autotools eutils findlib systemd
+
+DESCRIPTION="A swiss-army knife for multimedia streaming, notably used for netradios."
+HOMEPAGE="http://liquidsoap.fm/"
+SRC_URI="mirror://sourceforge/savonet/${P}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="aacplus alsa ao doc dirac dssi faad +flac gavl graphics jack json ladspa +lame lastfm libsamplerate mad osc portaudio pulseaudio +shout soundtouch speex speech +taglib theora +unicode video voaac +vorbis xml"
+
+RDEPEND="dev-lang/ocaml
+ dev-ml/ocaml-dtools
+ dev-ml/ocaml-duppy
+ dev-ml/ocaml-magic
+ dev-ml/ocaml-mm
+ dev-ml/pcre-ocaml
+ dev-ml/gd4o
+ dev-ml/ocamlsdl[truetype]
+ media-fonts/dejavu
+ media-libs/sdl-ttf
+ aacplus? ( dev-ml/ocaml-aacplus )
+ alsa? ( dev-ml/ocaml-alsa )
+ ao? ( dev-ml/ocaml-ao )
+ dirac? ( dev-ml/ocaml-schroedinger )
+ doc? ( dev-perl/XML-DOM )
+ dssi? ( dev-ml/ocaml-dssi )
+ faad? ( dev-ml/ocaml-faad )
+ flac? ( dev-ml/ocaml-flac )
+ gavl? ( dev-ml/ocaml-gavl )
+ graphics? ( dev-ml/camlimages )
+ jack? ( dev-ml/ocaml-bjack )
+ json? ( dev-ml/yojson )
+ ladspa? ( dev-ml/ocaml-ladspa )
+ lame? ( dev-ml/ocaml-lame )
+ lastfm? ( dev-ml/ocaml-lastfm )
+ libsamplerate? ( dev-ml/ocaml-samplerate )
+ mad? ( dev-ml/ocaml-mad )
+ osc? ( dev-ml/ocaml-lo )
+ portaudio? ( dev-ml/ocaml-portaudio )
+ pulseaudio? ( dev-ml/ocaml-pulseaudio )
+ shout? ( dev-ml/ocaml-cry )
+ soundtouch? ( dev-ml/ocaml-soundtouch )
+ speech? ( app-accessibility/festival
+ media-sound/sox
+ media-sound/normalize )
+ speex? ( dev-ml/ocaml-speex
+ dev-ml/ocaml-ogg )
+ taglib? ( dev-ml/ocaml-taglib )
+ theora? ( dev-ml/ocaml-theora )
+ unicode? ( dev-ml/camomile )
+ voaac? ( dev-ml/ocaml-voaacenc )
+ vorbis? ( dev-ml/ocaml-vorbis\
+ dev-ml/ocaml-ogg )
+ xml? ( dev-ml/ocaml-xmlplaylist )"
+DEPEND="${RDEPEND}
+ dev-ml/findlib
+ virtual/pkgconfig"
+
+pkg_setup() {
+ use doc || ewarn "The doc use flag is unset, html documentation will not be included."
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/run/liquidsoap ${PN},audio
+}
+
+src_prepare() {
+ has_version '>=dev-lang/ocaml-4' && epatch "${FILESDIR}/ocaml-4.patch"
+
+ einfo "Sandboxing Makefile.defs.in ..."
+ sed -i 's/@exec_prefix@/${DESTDIR}@exec_prefix@/g' Makefile.defs.in
+ sed -i 's/@libdir@/${DESTDIR}@libdir@/'g Makefile.defs.in
+ sed -i 's/@mandir@/${DESTDIR}@mandir@/'g Makefile.defs.in
+ sed -i 's/@sysconfdir@/${DESTDIR}@sysconfdir@/'g Makefile.defs.in
+ sed -i 's/@localstatedir@/${DESTDIR}@localstatedir@/'g Makefile.defs.in
+ sed -i 's/@datarootdir@/${DESTDIR}@datarootdir@/'g Makefile.defs.in
+ sed -i 's/@datadir@/${DESTDIR}@datadir@/'g Makefile.defs.in
+
+ einfo "Replacing tool check macros ..."
+ sed -i 's/AC_CHECK_TOOL_STRICT/AC_CHECK_TOOL/g' m4/ocaml.m4
+
+ AT_M4DIR="m4" eautoreconf -f -i
+ eautomake
+}
+
+# Internal functions
+liquidsoap_use() {
+ if use $1; then
+ return 0
+ else
+ echo "--without-$1-dir"
+ fi
+}
+liquidsoap_use_as() {
+ if use $1; then
+ return 0
+ else
+ echo "--without-$2-dir"
+ fi
+}
+
+src_configure() {
+ econf \
+ --with-user="${PN}" \
+ --with-group="${PN}" \
+ --localstatedir="/var" \
+ --with-default-font=/usr/share/fonts/dejavu/DejaVuSans.ttf \
+ --without-gstreamer-dir \
+ $(liquidsoap_use aacplus) \
+ $(liquidsoap_use alsa) \
+ $(liquidsoap_use ao) \
+ $(liquidsoap_use_as dirac schroedinger) \
+ $(liquidsoap_use dssi) \
+ $(liquidsoap_use faad) \
+ $(liquidsoap_use flac) \
+ $(liquidsoap_use gavl) \
+ $(liquidsoap_use_as graphics camlimages) \
+ $(liquidsoap_use_as jack bjack) \
+ $(liquidsoap_use ladspa) \
+ $(liquidsoap_use lame) \
+ $(liquidsoap_use lastfm) \
+ $(liquidsoap_use_as libsamplerate samplerate) \
+ $(liquidsoap_use mad) \
+ $(liquidsoap_use_as osc lo) \
+ $(liquidsoap_use portaudio) \
+ $(liquidsoap_use pulseaudio) \
+ $(use_enable graphics) \
+ $(liquidsoap_use_as shout cry) \
+ $(liquidsoap_use soundtouch) \
+ $(liquidsoap_use speex) \
+ $(liquidsoap_use taglib) \
+ $(liquidsoap_use theora) \
+ $(use_enable unicode camomile) \
+ $(liquidsoap_use_as voaac voaacenc) \
+ $(liquidsoap_use vorbis) \
+ $(liquidsoap_use_as xml xmlplaylist)
+ ## checks for python and pygtk, but hopefully
+ ## things wont break if they're missing
+}
+
+src_install() {
+ findlib_src_install
+ keepdir /etc/${PN} /var/log/${PN}
+ newinitd "${FILESDIR}/liquidsoap.runscript" ${PN}
+ systemd_newunit "${FILESDIR}/liquidsoap-at.service" "liquidsoap@.service"
+ dodoc CHANGES README
+ if use doc; then
+ emake doc
+ dohtml -r doc/html/*
+ fi
+}
+
+pkg_postinst() {
+ if use doc; then
+ elog "For comprehensive documentation see"
+ elog "file:///usr/share/doc/${P}/html/index.html"
+ fi
+}