Pham Ngoc Hai personal web site

Syndicate

baudline-1.07.ebuild
 
Written by Pham Ngoc Hai, on 03-01-2008 09:24

media-sound/baudline/baudline-1.07.ebuild 

This is my modified ebuild for Baudline 1.07 with proper binary source for each arch.

The original ebuild is from Ilya Kashirin at https://bugs.gentoo.org/show_bug.cgi?id=202845
You can find this ebuild there as well.

 

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $ Ilya Kashirin ( This e-mail address is being protected from spam bots, you need JavaScript enabled to view it )

inherit eutils versionator

MY_PV=$(replace_version_separator 2 '')

DESCRIPTION="Baudline is a time-frequency browser designed for scientific visualization of the spectral domain.  Signal analysis is performed by Fourier, correlation, and raster transforms that create colorful spectrograms with vibrant detail.  Conduct test and measurement experiments with the built in function generator, or play back audio files with a multitude of effects and filters.  The baudline signal analyzer combines fast digital signal processing, versatile high speed displays, and continuous capture tools for hunting down and studying elusive signal characteristics."

HOMEPAGE="http://www.baudline.com/"

if use x86 ; then
        MY_ARCH="linux_i686"
elif use amd64 ; then
        MY_ARCH="linux_x86_64"
elif use ppc ; then
        MY_ARCH="linux_ppc"
elif use sparc ; then
        MY_ARCH="solaris_sparc"
fi

SRC_URI="http://www.baudline.com/baudline_${MY_PV}_${MY_ARCH}.tar.gz"

LICENSE="AS-IS"
SLOT="0"
KEYWORDS="~x86"
RESTRICT="fetch"

RDEPEND="x11-libs/libXau
        x11-libs/libX11
        x11-libs/libXt
        x11-libs/libXext
        x11-libs/libSM
        x11-libs/libxcb
jack? ( media-sound/jack-audio-connection-kit )
"

DEPEND="${RDEPEND}"

IUSE="jack"

if use x86 ; then
        MY_ARCH="linux_i686"
elif use amd64 ; then
        MY_ARCH="linux_x86_64"
elif use ppc ; then
        MY_ARCH="linux_ppc"
elif use sparc ; then
        MY_ARCH="solaris_sparc"
fi

S=${WORKDIR}/baudline_${MY_PV}_${MY_ARCH}
INSTALLDIR="/opt/${PN}"

pkg_nofetch() {
        einfo "May not be automatically fetched due to licensing"
        einfo "restrictions. You must manually fetch baudline_${MY_PV}_${MY_ARCH}.tar.gz from"
        einfo "${SRC_URI}. Once ${PN}"
        einfo "has been downloaded, move it to ${DISTDIR} and then"
        einfo "restart this ebuild"
}


src_unpack () {
        unpack ${A}
        cd ${S}
}

src_install() {
        dodir /${INSTALLDIR}/
        cp ${S}/baudline "${D}/${INSTALLDIR}/" || die "Install failed!"
        dosym ${INSTALLDIR}/baudline /usr/bin/baudline

        cp -R ${S}/icons "${D}/${INSTALLDIR}/" || die "Install failed!"
        cp -R ${S}/palettes "${D}/${INSTALLDIR}/" || die "Install failed!"

        if use jack; then
                cp ${S}/baudline_jack "${D}/${INSTALLDIR}/" || die "Install failed!"
                dosym ${INSTALLDIR}/baudline_jack /usr/bin/baudline_jack
        fi
        doicon ${FILESDIR}/baudline.png

        make_desktop_entry ${PN} ${PN} ${PN}.png "AudioVideo;Player"

        dodoc README mailcap.txt mime.types.txt

}

pkg_postinst() {
        einfo "Baudline has been installed."
        einfo "to run Baudline use \"baudline\""

        if use jack; then
                einfo "To run Baudline with Jack support use \"baudline_jack\""
        fi
        einfo "More information about usage Baudline you can obtain at http://baudline.com/manual/index.html"
}

Last update: 15-03-2008 09:22

Published in : Computer stuff, Gentoo
Keywords : baudline-1.07, baudline, 1.07, ebuild
Quote this article in website Favoured Print Send to friend Related articles Save this to del.icio.us

Users' Comments (0) RSS feed comment

No comment posted

Add your comment



mXcomment 1.0.9 © 2007-2010 - visualclinic.fr
License Creative Commons - Some rights reserved
< Prev   Next >


Search

Calendar

 Aug   September 2010   Oct

SMTWTFS
   1  2  3  4
  5  6  7  8  91011
12131415161718
19202122232425
2627282930 
VC Funding ESL

Random Photos






Donate

Enter Amount:

Sponsored Links

Copyright © 2007 Joomla Templates By Joomladesigns.  Modified By Pham Ngoc Hai