Ticket #99 (new Feature)

Opened 2 years ago

Last modified 3 months ago

Fixed portage-scm tree for liquidsoap via subversion

Reported by: karye Owned by: admin
Priority: 1 Milestone:
Component: Liquidsoap Version: 0.3.6+svn
Keywords: Cc:
Mac OSX: no Linux: yes
NetBSD: no Other Operating System: no
FreeBSD: no

Description

Portage complained about errors in portage tree and missing digest files so I fixed that and successfully emerged liuidsoap-scm. Correct me if I'm misstaken! Attached portage-scm tree.

Instructions: 1. add overlay portage-scm in /etc/make.conf: PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-scm"

2. add in /etc/portage/package.keywords: media-sound/liquidsoap-scm ** dev-ml/ocaml-fetch-scm ** dev-ml/ocaml-ftp-scm ** dev-ml/ocaml-vorbis-scm ** dev-ml/ocaml-shout-scm ** dev-ml/ocaml-dtools-scm ** dev-ml/ocaml-mad-scm ** dev-ml/ocaml-ogg-scm ** dev-ml/ocaml-lame-scm ** dev-ml/ocaml-ao-scm ** dev-ml/ocaml-taglib-scm ** dev-ml/ocaml-faac-scm ** dev-ml/ocaml-faad-scm ** dev-ml/ocaml-duppy-scm **

3. add in /etc/portage/package.use media-sound/liquidsoap-scm mp3 unicode -alsa ao taglib lame -mp3id3 wget aac -id3tag .. or whatever you like.

Great thx guys for all your work! /karye

Attachments

portage-scm.tar.bz2 (7.9 kB) - added by karye 2 years ago.
portage-svn.tar.bz2 (5.4 kB) - added by karye 2 years ago.
liquidsoap svn-tree

Change History

Changed 2 years ago by karye

follow-up: ↓ 2   Changed 2 years ago by gim

I fixed a missing digest in ocaml-vorbis ebuilds. Does it fix your tree ? (Or maybe your version of portage don't recognize the new Manifest format?)

trunk/gentoo/portage-scm is meant to be used with paludis which recognize -scm versions and reinstall them on a periodic base. Portage still don't have support for that. I guest the way you deal with it will bring you lots of problems.

in reply to: ↑ 1   Changed 2 years ago by karye

Replying to gim:

I fixed a missing digest in ocaml-vorbis ebuilds. Does it fix your tree ? (Or maybe your version of portage don't recognize the new Manifest format?) trunk/gentoo/portage-scm is meant to be used with paludis which recognize -scm versions and reinstall them on a periodic base. Portage still don't have support for that. I guest the way you deal with it will bring you lots of problems.

I upgraded to latest portage and fixed my tree. Here's the portage variant of the svn-tree if you are interrested. I have no intention to switch to paludis yet ;-) Attached new tarball.

Changed 2 years ago by karye

liquidsoap svn-tree

  Changed 2 years ago by karye

I've added the debug use flag:

# Copyright 2003-2008 The Savonet Team
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $

IUSE="debug doc nativecode unicode alsa ao mp3 aac taglib lame rtp speech wget soundtouch"

inherit subversion eutils

DESCRIPTION="Programmable and flexible audio stream generator, mainly intended as a web-radio engine."
HOMEPAGE="http://savonet.sf.net"

ESVN_REPO_URI="https://savonet.svn.sourceforge.net/svnroot/savonet/trunk/liquidsoap"
ESVN_BOOTSTRAP="./bootstrap"

DEPEND="
        dev-lang/ocaml
        dev-ml/pcre-ocaml
        dev-ml/ocaml-duppy-svn
        dev-ml/ocaml-dtools-svn
        dev-ml/ocaml-shout-svn
        dev-ml/ocaml-vorbis-svn
        dev-ml/ocaml-ogg-svn
        unicode? ( dev-ml/camomile )
        alsa?    ( dev-ml/ocaml-alsa-svn )
        ao?      ( dev-ml/ocaml-ao-svn )
        mp3?     ( dev-ml/ocaml-mad-svn )
        aac?     ( dev-ml/ocaml-faac-svn dev-ml/ocaml-faad-svn )
        taglib?  ( dev-ml/ocaml-taglib-svn )
        lame?    ( dev-ml/ocaml-lame-svn )
        soundtouch? ( media-libs/libsoundtouch )
        rtp?     ( net-libs/libortp )
        speech?  ( app-accessibility/festival )
"
RDEPEND="
        >=dev-lang/ocaml-3.08
        speech?  (
                app-accessibility/festival
                media-sound/sox
                media-sound/normalize
        )
        wget?    ( net-misc/wget )
"

SLOT="0"
KEYWORDS="-x86"
LICENSE="GPL-2"
FEATURES="nostrip"

src_compile () {
        econf \
                $(use_enable debug debugging) \
                $(use_enable nativecode) \
                $(use_enable unicode camomile) \
                $(use_enable alsa) \
                $(use_enable ao) \
                $(use_enable mp3 mad) \
                $(use_enable aac) \
                $(use_enable taglib) \
                $(use_enable lame) \
                $(use_enable rtp) \
                $(use_enable soundtouch) \
                || die "configure failed"
        emake || die "emake failed"
        use doc && emake doc
        use doc || emake fakedoc
}

pkg_setup() {
        enewuser  liquidsoap '' '' '' '' || die "problem adding user liquidsoap"
        enewgroup liquidsoap '' '' '' '' || die "problem adding group liquidsoap"
}

src_install () {
        einstall || die "einstall failed"
        use doc && einstall api-doc-install
        einstall gentoo-install
        keepdir /var/lib/log/liquidsoap
        keepdir /var/lib/run/liquidsoap
}

pkg_postinst() {
        einfo "Some example configuration has been put into /etc/liquidsoap/radio.liq."
        einfo "After editing it a bit, you should be able to run it using"
        einfo "/etc/init.d/liquidsoap start"
        einfo "The Savonet team thanks you for using liquidsoap!"
}

  Changed 2 years ago by karye

  • version set to 0.3.6+svn
  • milestone set to 0.3.7

Btw the log dir does not conform with gentoo portage paths: usually the logs end up in /var/log.

So here's an updated ebuild:

# Copyright 2003-2008 The Savonet Team
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: $

IUSE="debug doc nativecode unicode alsa ao mp3 aac taglib lame rtp speech wget soundtouch"

inherit subversion eutils

DESCRIPTION="Programmable and flexible audio stream generator, mainly intended as a web-radio engine."
HOMEPAGE="http://savonet.sf.net"

ESVN_REPO_URI="https://savonet.svn.sourceforge.net/svnroot/savonet/trunk/liquidsoap"
ESVN_BOOTSTRAP="./bootstrap"

DEPEND="
        dev-lang/ocaml
        dev-ml/pcre-ocaml
        dev-ml/ocaml-duppy-svn
        dev-ml/ocaml-dtools-svn
        dev-ml/ocaml-shout-svn
        dev-ml/ocaml-vorbis-svn
        dev-ml/ocaml-ogg-svn
        unicode? ( dev-ml/camomile )
        alsa?    ( dev-ml/ocaml-alsa-svn )
        ao?      ( dev-ml/ocaml-ao-svn )
        mp3?     ( dev-ml/ocaml-mad-svn )
        aac?     ( dev-ml/ocaml-faac-svn dev-ml/ocaml-faad-svn )
        taglib?  ( dev-ml/ocaml-taglib-svn )
        lame?    ( dev-ml/ocaml-lame-svn )
        soundtouch? ( media-libs/libsoundtouch )
        rtp?     ( net-libs/libortp )
        speech?  ( app-accessibility/festival )
"
RDEPEND="
        >=dev-lang/ocaml-3.08
        speech?  (
                app-accessibility/festival
                media-sound/sox
                media-sound/normalize
        )
        wget?    ( net-misc/wget )
"

SLOT="0"
KEYWORDS="-x86"
LICENSE="GPL-2"
FEATURES="nostrip"

src_compile () {
        econf \
                $(use_enable debug debugging) \
                $(use_enable nativecode) \
                $(use_enable unicode camomile) \
                $(use_enable alsa) \
                $(use_enable ao) \
                $(use_enable mp3 mad) \
                $(use_enable aac) \
                $(use_enable taglib) \
                $(use_enable lame) \
                $(use_enable rtp) \
                $(use_enable soundtouch) \
                || die "configure failed"
        emake || die "emake failed"
        use doc && emake doc
        use doc || emake fakedoc
}

pkg_setup() {
        enewuser  liquidsoap '' '' '' '' || die "problem adding user liquidsoap"
        enewgroup liquidsoap '' '' '' '' || die "problem adding group liquidsoap"
}

src_install () {
        einstall || die "einstall failed"
        use doc && einstall api-doc-install
        einstall gentoo-install
        keepdir /var/log/liquidsoap
        keepdir /var/lib/run/liquidsoap
}

pkg_postinst() {
        einfo "Some example configuration has been put into /etc/liquidsoap/radio.liq."
        einfo "After editing it a bit, you should be able to run it using"
        einfo "/etc/init.d/liquidsoap start"
        einfo "The Savonet team thanks you for using liquidsoap!"
}

  Changed 2 years ago by toots

  • milestone 0.3.7 deleted
Note: See TracTickets for help on using tickets.