app-crypt/moolticute: remove old and fill version.h with package version

This commit is contained in:
nemunaire 2017-10-11 21:24:06 +02:00
parent 7214b0fafd
commit abf138b035
4 changed files with 25 additions and 106 deletions

View File

@ -1,8 +1,4 @@
AUX 50-mooltipass.rule 84 SHA256 82e6af786f2ac972a4dc026d092ad3d0c8d5ecde791996e399a2a8a23e4333d0 SHA512 26f8a9f2c5fb2f3a87a486f91d5fae7069955dc528eacb8a37a833d393be38b70e3a9784024287cdfeb93a90abad83400395bb803e82a091100bd44cb7b2c28d WHIRLPOOL 1956cc3bca8bbcf2161a6f3ebd6025faed18fd7be3a842370b27948b13da27a3c8fb0138a656b3355cde44b6a5abed65f6b6f4c7c73d04d22917d1ccd105a69b
AUX moolticuted.init 400 SHA256 efbc4277a49b9f7005b058a4a0f24b59cd62d5e066c87e5ecc1c2088a5e20c0b SHA512 0f393b6921c8ea4ea7651237122186d4b9b4f639ee66ea1edc81e6ed26f31682b4a4e63af0328d18eb0bf635f6ae4a3ace58ebd488132898be0970b0b85fe0e5 WHIRLPOOL f76fba68598aae3388c2e08d4d06382018c6ba8e9ad386e919f260364fd641fcbcff9e3c843702e2300936f24ed4a6a40450d555cf5238c5f4f492c94ca9e0f2
DIST moolticute-0.7.0.tar.gz 4286792 SHA256 2b2fc5c6f241dd13c18a3d1b0ef2aaba4aa1a30828ddcaa9915a6702cb3401bb SHA512 983b613b7a3bb2490e23c892b88a05c506516707b1b6da766896c075a180a8d7a3b2dac69af701fddeaba2e38937d32aae100a13cfaf30656778b724b0990a22 WHIRLPOOL 4658a194bf16f652cec5bd66b33f8fb06240a343aefe9a94a1e4fc8cef0af0449fc57aa73c7b1576e27f965676e2773dcfa87e310358716cd781e175b04e0ff6
DIST moolticute-0.8.0_beta.tar.gz 4351321 SHA256 84919d51e1859ad6fc328b8656ba04db415db745d387fb06621cc520ff494546 SHA512 f6b6912c14e6b33b46dcba9ec8bf44609e7e4f5cd6fc8be3badbb43823b3559ad12e8c70655c936944ed64469efc76dac8cd4a3f3a11f82f92cdfa676df11b2f WHIRLPOOL 6fe487ca3cd22a3e22ad83bfaa718fe9c18fe7b287f072d78af550ebcde27badd91fd135044df97916a3fd3b2261fbb10eddc75c5e5949315801a453f5002848
EBUILD moolticute-0.7.0.ebuild 981 SHA256 bebb6af3ee7ef038835b946ca056a2262ace5ea691c2533d205309e857bfa1e4 SHA512 3e18dfdab3b077cfdee5f9ff4c9b749ab2a1b4e63d3984f14254e8efb1b8eaab784fc76503d25377f8b9b08b10eed99a87437337c8b7b044530642ea319985d0 WHIRLPOOL 31b718c953099d94d7cff3a40e4038958607ac06f5aa347ce4fa00a288bc4b2571f69261f43f87af2a4db1f97927c3911b882e4d9aa8cd5d370ce0d16350a341
EBUILD moolticute-0.8.0_beta.ebuild 965 SHA256 215bea24dd5cbfe7d4f6a782582fab1621c18c2c3a65da6005ccf93e4fb88bc4 SHA512 c97386c2a0f34e0a8f754516136601b141e62b9478f37719a2c86194f2967b1ad57362aad5487150e06541cfa169bfbf52676e830da1493302423d763785ed44 WHIRLPOOL 4a2a7b84454c58842a29fe5bec209d5f8d6efd9a9f0e7c635f0ee01d69b0c53c24627e166081ea375973bc25b4181cd0dd1f207c5d3cc1b20a513a6eeb9dafb8
EBUILD moolticute-9999.ebuild 965 SHA256 215bea24dd5cbfe7d4f6a782582fab1621c18c2c3a65da6005ccf93e4fb88bc4 SHA512 c97386c2a0f34e0a8f754516136601b141e62b9478f37719a2c86194f2967b1ad57362aad5487150e06541cfa169bfbf52676e830da1493302423d763785ed44 WHIRLPOOL 4a2a7b84454c58842a29fe5bec209d5f8d6efd9a9f0e7c635f0ee01d69b0c53c24627e166081ea375973bc25b4181cd0dd1f207c5d3cc1b20a513a6eeb9dafb8
EBUILD moolticute-9999.ebuild 1302 SHA256 4e7c888ffd0d991a8bbf5af20bbc48b76013347e01d53369bcb2bbca3385de2c SHA512 f1f7b952c3f9c6be9454ea71ae6b74840476faa728cc35f83de06bee39d6aa5f1adf790393bdf095020e9221da1a0f5d716db19efc3603957469dd87818480c9 WHIRLPOOL 60fc699663c1be2ee203b43f1d83cebf98555046b1c9aa2cd1764e09e5ff4af3895c5d4bf17b29912c3911fb3ccec658410f83d1e4d3ffc2c25f65ab4e9c9b2b
MISC metadata.xml 522 SHA256 918331854b3e9d97086f0d5dc7981dd556fa6c341d7d4de027fe5c0affa814b9 SHA512 a08a366830b4fa1cc03a49d0e8af159908a9d5d13e9a4e8e910fd133671da66893010707cfafd1c3548899a54e610e249085583def235bb8e3b32862d960dd45 WHIRLPOOL 80033ebbea02e82fc40c709e4ed6755d6a89ea34b7c2f51b2ab00b75a41650273c34c477c7d14548f732762045f32c818799b3e4f87eee63af596f43cc5715f9

View File

@ -1,47 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/raoulh/moolticute.git"
inherit git-r3
KEYWORDS=""
else
MY_PV="${PV}-beta"
SRC_URI="https://github.com/raoulh/moolticute/archive/v${MY_PV}.tar.gz -> moolticute-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm"
S=${WORKDIR}/${PN}-${MY_PV}
fi
inherit qmake-utils udev
DESCRIPTION="Mooltipass crossplatform daemon/tools "
HOMEPAGE="https://github.com/raoulh/moolticute"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND=">=dev-qt/qtcore-5.6:5
dev-qt/qtwidgets:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwebsockets:5
>=dev-libs/libusb-1.0.20"
DEPEND="${RDEPEND}"
src_configure() {
eqmake5 PREFIX="/usr" Moolticute.pro
}
src_install() {
emake install INSTALL_ROOT="${D}"
udev_dorules "${FILESDIR}/50-mooltipass.rule"
newinitd "${FILESDIR}/moolticuted.init" moolticuted
}
pkg_postinst() {
udev_reload
}

View File

@ -1,48 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/raoulh/moolticute.git"
inherit git-r3
KEYWORDS=""
else
SRC_URI="https://github.com/raoulh/moolticute/archive/v${PV//_/-}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm"
fi
inherit qmake-utils udev
DESCRIPTION="Mooltipass crossplatform daemon/tools "
HOMEPAGE="https://github.com/raoulh/moolticute"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND=">=dev-qt/qtcore-5.6:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qttest:5
dev-qt/qtwebsockets:5
dev-qt/qtwidgets:5
>=dev-libs/libusb-1.0.20"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${P//_/-}"
src_configure() {
eqmake5 PREFIX="/usr" Moolticute.pro
}
src_install() {
emake install INSTALL_ROOT="${D}"
udev_dorules "${FILESDIR}/50-mooltipass.rule"
newinitd "${FILESDIR}/moolticuted.init" moolticuted
}
pkg_postinst() {
udev_reload
}

View File

@ -8,29 +8,42 @@ if [[ ${PV} == 9999* ]]; then
inherit git-r3
KEYWORDS=""
else
SRC_URI="https://github.com/raoulh/moolticute/archive/v${PV//_/-}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/raoulh/moolticute/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm"
fi
inherit qmake-utils udev
inherit gnome2-utils qmake-utils udev
DESCRIPTION="Mooltipass crossplatform daemon/tools "
DESCRIPTION="Mooltipass crossplatform daemon/tools"
HOMEPAGE="https://github.com/raoulh/moolticute"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND=">=dev-qt/qtcore-5.6:5
RDEPEND="
>=dev-libs/libusb-1.0.20
>=dev-qt/qtcore-5.6:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qttest:5
dev-qt/qtwebsockets:5
dev-qt/qtwidgets:5
>=dev-libs/libusb-1.0.20"
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${P//_/-}"
S="${WORKDIR}/${P/_/-}"
src_prepare() {
default
# Fill version.h with package version
if [[ ${PV} != 9999* ]]; then
sed -i "s/\"git\"/\"${PV/_/-} (Gentoo)\"/" src/version.h
else
sed -i "s/\"git\"/\"git commit $(git log -1 --format=%h) (Gentoo)\"/" src/version.h
fi
}
src_configure() {
eqmake5 PREFIX="/usr" Moolticute.pro
@ -45,4 +58,9 @@ src_install() {
pkg_postinst() {
udev_reload
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}