Skip to content

Commit

Permalink
app-misc/prog-express: New package: add prog-express license
Browse files Browse the repository at this point in the history
  • Loading branch information
ConiKost committed Mar 30, 2018
1 parent 4ee2082 commit aefce93
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-misc/prog-express/Manifest
@@ -0,0 +1,2 @@
DIST prog-express-3.7.8-1.amd64.deb 36468792 BLAKE2B 7edc5b4c9b7c145877298ac33db743960850d2fbd4cc33943612573277a32935dba15a531f13ad7d75309291cf74ca8f0b80b084dafd840f7831362315c6b8c5 SHA512 647549edd846330044bf34eb40436cc622c4e0871726a31049a93b032e5e1c4428231bee97a21cf75baeeade4e651f7d593ed0cdeb0698679582ff6a7f4293e2
DIST prog-express-3.7.8-1.i386.deb 36468530 BLAKE2B 9e6e81546889a5892bce33168e26b067abe91ceecd9a77f8a0f4af788cbb9da3930e3c1fcf682d6b5aceda04bc84d7ddcf7f45ee4936be8833be4b5244f12541 SHA512 149ae0150d5f8cb99aec92485e4309973f425a87d5c46971b850c69263ea2cbf39df73025709327f80e8b01219114ef9b7219bad7647d947de3625e1bec4904b
3 changes: 3 additions & 0 deletions app-misc/prog-express/files/pe.exe.config
@@ -0,0 +1,3 @@
<configuration>
<dllmap os="linux" dll="libusb-1.0.dll" target="libusb-1.0.so.0" />
</configuration>
12 changes: 12 additions & 0 deletions app-misc/prog-express/metadata.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ck+gentoo@bl4ckb0x.de</email>
<name>Conrad Kostecki</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>
91 changes: 91 additions & 0 deletions app-misc/prog-express/prog-express-3.7.8.ebuild
@@ -0,0 +1,91 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit desktop udev unpacker

DESCRIPTION="A modern and intuitive control software for the Batronix USB programming devices"
HOMEPAGE="https://www.batronix.com"
SRC_URI="amd64? ( https://www.batronix.com/exe/Batronix/Prog-Express/deb/${P}-1.amd64.deb )
x86? ( https://www.batronix.com/exe/Batronix/Prog-Express/deb/${P}-1.i386.deb )"

KEYWORDS="-* ~amd64 ~x86"
LICENSE="prog-express"
SLOT="0"

RDEPEND="dev-db/sqlite
dev-dotnet/gtk-sharp
dev-dotnet/libgdiplus
dev-lang/mono
dev-lang/mono-basic
virtual/libusb:1
virtual/udev"

RESTRICT="strip"

S="${WORKDIR}"

QA_PREBUILT="usr/bin/bxusb
usr/bin/bxusb-gui
usr/bin/prog-express
usr/sbin/bxfxload"

src_unpack() {
# Unpack Debian package
unpack_deb ${A}
}

src_prepare() {
# Fix lib path
for file in bxusb bxusb-gui prog-express; do
sed -i -e "s/lib/$(get_libdir)/g" usr/bin/${file} || die
done

# Apply user patches
eapply_user
}

src_install() {
# Install bin files
dobin usr/bin/bxusb usr/bin/bxusb-gui usr/bin/prog-express

# Install sbin files
dosbin usr/sbin/bxfxload

# Install lib files
insinto /usr/$(get_libdir)
doins -r usr/lib/bxusb usr/lib/prog-express

# Install usb config
insinto /usr/$(get_libdir)/prog-express
doins "${FILESDIR}"/pe.exe.config

# Install udev rule
udev_dorules lib/udev/rules.d/85-batronix-devices.rules

# Install menu entry
domenu usr/share/applications/prog-express.desktop

# Install icon
doicon usr/share/pixmaps/prog-express.png

# Install docs
local DOCS=( "usr/share/doc/prog-express/changelog.gz" )
dodoc -r usr/share/doc/prog-express/manuals
einstalldocs

# Install man pages
gunzip usr/share/man/man1/*.gz || die
doman usr/share/man/man1/bxfxload.1 usr/share/man/man1/bxusb.1 usr/share/man/man1/bxusb-gui.1 usr/share/man/man1/prog-express.1
}

pkg_postinst() {
# Reload UDEV rules after install
udev_reload
}

pkg_postrm() {
# Reload UDEV rules after uninstall
udev_reload
}

0 comments on commit aefce93

Please sign in to comment.