From 77d22a4a52e994ce22223f7b7fc3997ded806014 Mon Sep 17 00:00:00 2001 From: Maxim Koltsov Date: Sat, 17 Aug 2019 10:56:47 +0300 Subject: [PATCH] dev-util/sasm: bump to 3.10.1 Closes: https://bugs.gentoo.org/690822 Package-Manager: Portage-2.3.71, Repoman-2.3.12 Signed-off-by: Maxim Koltsov --- dev-util/sasm/Manifest | 1 + ...-3.10.1-unbundle-qtsingleapplication.patch | 19 ++++++ dev-util/sasm/sasm-3.10.1.ebuild | 60 +++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 dev-util/sasm/files/sasm-3.10.1-unbundle-qtsingleapplication.patch create mode 100644 dev-util/sasm/sasm-3.10.1.ebuild diff --git a/dev-util/sasm/Manifest b/dev-util/sasm/Manifest index c5c88bc01dc0..c40448f3c619 100644 --- a/dev-util/sasm/Manifest +++ b/dev-util/sasm/Manifest @@ -1 +1,2 @@ DIST sasm-2.2.tar.gz 9117410 BLAKE2B f85d120469f11fd8cdb7ae9dcdc87464d8bc64db4f99cb2787c4f2adb6294288a7fd1dc071b53badb8153e8c8220a77964b102a234ad9ebc3b6a64d505c828dd SHA512 42d4af775d37d47bcf63fb70b9142e387e33cef5589002ff3e3cee926b5fca7e1508d640d1d5a175d48fc9fd041eb1f03304cad5ddc3c22a09ff29198650b513 +DIST sasm-3.10.1.tar.gz 22349749 BLAKE2B e1337d9ab1f62b0ccab31f202f5964ab2b355ab597cf08e65dd69f7a35f72187a36767d1bbbf339e3bf8330dffcd924682e464d0e8cdc13255723b2c5ed75747 SHA512 2a1410c996e3dac1179a2c8a0140b2180ccc9e461e4695a588c6a5db787a13de5ca9124d467561905e1d445d08bd044bd99831203faa6a740614bc6680ae10d1 diff --git a/dev-util/sasm/files/sasm-3.10.1-unbundle-qtsingleapplication.patch b/dev-util/sasm/files/sasm-3.10.1-unbundle-qtsingleapplication.patch new file mode 100644 index 000000000000..70b7e56682d2 --- /dev/null +++ b/dev-util/sasm/files/sasm-3.10.1-unbundle-qtsingleapplication.patch @@ -0,0 +1,19 @@ +--- a/SASM.pro 2018-10-08 22:09:33.000000000 +0300 ++++ b/SASM.pro 2019-08-17 10:39:31.695020549 +0300 +@@ -18,6 +18,8 @@ + BINDIR = $$PREFIX/bin + DATADIR = $$PREFIX/share + ++CONFIG += qtsingleapplication ++ + bsd { + binfile.files += sasm + binfile.files += BSD/bin/* +@@ -47,7 +49,6 @@ + INSTALLS += shortcutfiles + INSTALLS += docfiles + +-include(singleapplication/qtsingleapplication.pri) + + SOURCES += main.cpp\ + mainwindow.cpp \ diff --git a/dev-util/sasm/sasm-3.10.1.ebuild b/dev-util/sasm/sasm-3.10.1.ebuild new file mode 100644 index 000000000000..90ca72d53168 --- /dev/null +++ b/dev-util/sasm/sasm-3.10.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit qmake-utils + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/Dman95/SASM.git" + SRC_URI="" + inherit git-r3 +else + SRC_URI="https://github.com/Dman95/SASM/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/SASM-${PV}" +fi + +DESCRIPTION="Simple crossplatform IDE for NASM assembly language" +HOMEPAGE="http://dman95.github.io/SASM/" + +LICENSE="GPL-3" +SLOT="0" +[[ ${PV} == 9999 ]] || \ +KEYWORDS="~amd64 ~x86" +IUSE="" + +PATCHES=( + "${FILESDIR}"/${P}-unbundle-qtsingleapplication.patch +) + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtsingleapplication + dev-qt/qtwidgets:5 +" +REPEND="${DEPEND} + dev-lang/nasm + sys-devel/gdb +" + +# SASM repository contains precompiled binaries ¯\_(ツ)_/¯ +QA_PREBUILT="usr/bin/fasm usr/bin/listing" + +src_prepare() { + # To recompress it with gentoo tools + gunzip Linux/share/doc/sasm/changelog.gz || die + sed -e 's@changelog.gz@changelog@g' \ + -e '/docfiles.path/s@doc/sasm@doc/'${PF}'@g' \ + -i SASM.pro || die + + default +} + +src_configure() { + eqmake5 +} + +src_install() { + emake install INSTALL_ROOT="${D}" +} -- 2.26.2