43 lines
1 KiB
Bash
43 lines
1 KiB
Bash
myexparam name=
|
|
myexparam suffix=.tar.bz2
|
|
myexparam -b autogen=false
|
|
|
|
WORK="${WORKBASE}/$(exparam name)-${PV}"
|
|
|
|
if [[ "${PV}" == scm ]] ; then
|
|
SCM_SUBPATH="$(exparam name)"
|
|
SCM_CHECKOUT_TO="${SCM_SUBPATH}"
|
|
SCM_UNPACK_TO="${WORK}"
|
|
SCM_REPOSITORY="https://cdemu.svn.sourceforge.net/svnroot/cdemu/"
|
|
require scm-svn
|
|
|
|
$(exparam autogen) && require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.10 ] ]
|
|
else
|
|
DOWNLOADS="mirror://sourceforge/cdemu/$(exparam name)-${PV}$(exparam suffix)"
|
|
fi
|
|
|
|
HOMEPAGE="http://cdemu.sourceforge.net/"
|
|
|
|
if [[ "${PN}" == cdemu || "${PN}" == cdemud ]] ; then
|
|
SUMMARY="A CD/DVD-ROM device emulator."
|
|
DESCRIPTION="A CD/DVD-ROM device emulator for Linux.
|
|
It is a from-scratch rewrite of the legacy CDEmu project,
|
|
which was started by Robert Penz."
|
|
fi
|
|
|
|
LICENCES="GPL-2"
|
|
|
|
REMOTE_IDS="sourceforge:cdemu freecode:cdemu"
|
|
|
|
src_prepare() {
|
|
exparam -v WANT_AUTOGEN autogen
|
|
|
|
default
|
|
|
|
if [[ "${PV}" == scm ]] ; then
|
|
if ${WANT_AUTOGEN} ; then
|
|
edo ./autogen.sh
|
|
fi
|
|
fi
|
|
}
|
|
|