app-emulation/opencbm: update metadata
Package-Manager: Portage-3.0.30, Repoman-3.0.3
This commit is contained in:
@@ -1,38 +1,36 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit eutils toolchain-funcs linux-mod udev
|
||||
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/OpenCBM/OpenCBM.git"
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/OpenCBM/OpenCBM.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
#SRC_URI="http://debian.trikaliotis.net/opencbm/opencbm_${PV}-1.tar.gz"
|
||||
#SRC_URI="http://www.trikaliotis.net/Download/opencbm-${PV}/opencbm-${PV}-source.tar.bz2"
|
||||
SRC_URI="https://github.com/OpenCBM/OpenCBM/archive/v${PV//./_}.tar.gz -> opencbm-${PV}-source.tar.gz
|
||||
https://github.com/OpenCBM/nibtools/tarball/master -> nibtools-${PV}-source.tar.gz"
|
||||
#SRC_URI="http://debian.trikaliotis.net/opencbm/opencbm_${PV}-1.tar.gz"
|
||||
#SRC_URI="http://www.trikaliotis.net/Download/opencbm-${PV}/opencbm-${PV}-source.tar.bz2"
|
||||
SRC_URI="https://github.com/OpenCBM/OpenCBM/archive/v${PV//./_}.tar.gz -> opencbm-${PV}-source.tar.gz
|
||||
https://github.com/OpenCBM/nibtools/tarball/master -> nibtools-${PV}-source.tar.gz"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
fi
|
||||
|
||||
|
||||
SDIR="include libmisc arch/linux lib cbmctrl cbmformat d64copy cbmcopy libtrans cbmforng d82copy demo/flash demo/morse demo/rpm1541 sample/libtrans cbmrpm41"
|
||||
|
||||
DESCRIPTION="OpenCBM is a package to control and use serial devices as used by most Commodore (CBM) 8-bit mach"
|
||||
DESCRIPTION="OpenCBM is a tool to use serial devices as used by most Commodore (CBM) machines"
|
||||
HOMEPAGE="http://opencbm.trikaliotis.net/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
#KEYWORDS=""
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="virtual/linux-sources
|
||||
dev-embedded/cc65
|
||||
app-text/linuxdoc-tools
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
dev-libs/libusb-compat"
|
||||
virtual/libusb:0"
|
||||
|
||||
S="${WORKDIR}"/OpenCBM-${PV//./_}
|
||||
|
||||
@@ -50,15 +48,15 @@ src_prepare() {
|
||||
eapply "${FILESDIR}/001_opencbm-0.4.99.98-ncurses6-1.patch"
|
||||
# sed correct path
|
||||
sed -e 's,^PREFIX.*,PREFIX = /usr,' \
|
||||
-e 's,/man/man1,/share/man/man1,g' \
|
||||
-e 's,etc/udev/rules.d,lib/udev/rules.d,g' \
|
||||
-e 's,/info,/share/info,g' -i ${S}/opencbm/LINUX/config.make
|
||||
-e 's,/man/man1,/share/man/man1,g' \
|
||||
-e 's,etc/udev/rules.d,lib/udev/rules.d,g' \
|
||||
-e 's,/info,/share/info,g' -i "${S}"/opencbm/LINUX/config.make
|
||||
# sed correct path
|
||||
sed -e 's,xa1541 opencbm/sys/linux/,xa1541,g' \
|
||||
-e 's,etc/udev/rules.d,lib/udev/rules.d,g' -i ${S}/LINUX/Makefile
|
||||
-e 's,etc/udev/rules.d,lib/udev/rules.d,g' -i "${S}"/LINUX/Makefile
|
||||
# copy module makefile that don't intefer with gentoo kernel build system
|
||||
cp ${FILESDIR}/Makefile ${S}/opencbm/sys/linux/Makefile
|
||||
cp -r "${WORKDIR}"/OpenCBM-nibtools-*/* ${S}/opencbm/nibtools/
|
||||
cp "${FILESDIR}"/Makefile "${S}"/opencbm/sys/linux/Makefile
|
||||
cp -r "${WORKDIR}"/OpenCBM-nibtools-*/* "${S}"/opencbm/nibtools/
|
||||
eapply_user
|
||||
}
|
||||
|
||||
@@ -78,25 +76,24 @@ src_install() {
|
||||
newexe debian/install_plugin.sh install_plugin
|
||||
insinto lib/udev/rules.d
|
||||
newins opencbm/sys/linux/45-opencbm-xa1541.rules 45-opencbm-xa1541.rules
|
||||
rm -rf ${D}/var
|
||||
rm -rf "${D}"/var
|
||||
linux-mod_src_install
|
||||
generate_modulesd
|
||||
# exit 1
|
||||
generate_modulesd
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
${EROOT}/usr/lib/opencbm/install_plugin install xa1541
|
||||
${EROOT}/usr/lib/opencbm/install_plugin install xu1541
|
||||
${EROOT}/usr/lib/opencbm/install_plugin install xum1541
|
||||
linux-mod_pkg_postinst
|
||||
"${EROOT}"/usr/lib/opencbm/install_plugin install xa1541
|
||||
"${EROOT}"/usr/lib/opencbm/install_plugin install xu1541
|
||||
"${EROOT}"/usr/lib/opencbm/install_plugin install xum1541
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
${EROOT}/usr/lib/opencbm/install_plugin uninstall xa1541
|
||||
${EROOT}/usr/lib/opencbm/install_plugin uninstall xu1541
|
||||
${EROOT}/usr/lib/opencbm/install_plugin uninstall xum1541
|
||||
"${EROOT}"/usr/lib/opencbm/install_plugin uninstall xa1541
|
||||
"${EROOT}"/usr/lib/opencbm/install_plugin uninstall xu1541
|
||||
"${EROOT}"/usr/lib/opencbm/install_plugin uninstall xum1541
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
linux-mod_pkg_postrm
|
||||
linux-mod_pkg_postrm
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user