forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-im/mcabber: version bump (greetings to Sarah Salzstein)
Package-Manager: Portage-2.3.5, Repoman-2.3.1
- Loading branch information
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST mcabber-1.0.4.tar.bz2 605462 SHA256 63b6bc003fcceba4dc4b273ed1c71643c4f8d95e8696543d53f64a7672b1ce0a SHA512 f4f85abcdfa341489e47ba5290e9cce79cdd749753155003e3a9b5edd145e158c91d0a32fe07983196be5729134279f21fbe94511a41b98b793b415157b6b15b WHIRLPOOL 09f7d6e53e352a0e7087da0ddb1a9f5a717c447c2e7a3d9d3e1b14409e8dd4e95472a60af743a0fbb64d4ee296b8eb6654cfb3ce6030ea8abd95ba863eacb7f1 | ||
DIST mcabber-1.0.5.tar.bz2 605483 SHA256 a0f200817d2b6196fe4d37918ce16f6fed83a3cef861d7165161e8b1cafcad47 SHA512 81b67899245902f495af7b44a5a0d710db69da731a00fb9ed84bdc0f88d5dc662f340817b1eaa843802c95105846234743eba52117f18bf12dd37a0da61d414d WHIRLPOOL ee09cc76d6e6f8507f6e78ed9f9d9f512f841d36d35d707593c15b9f0b3c9e1bc8910d1e0ff1cdf5ff6c34781a75eb7b1fd447789ba9a36f5137d8bf12dbacbe | ||
DIST mcabber-1.1.0.tar.bz2 608975 SHA256 04fc2c22c36da75cf4b761b5deccd074a19836368f38ab9d03c1e5708b41f0bd SHA512 d12546e9fe9da94b6107f4d38d4083bee74e2702f7f2225e26be291230c6fe1319f60a3204da669dc00b14d69822425bf8214ebb723c3c4a7a33b1247a03093f WHIRLPOOL 0d1b126173d3a3fc8629cbdb51697b997f009d4554fbd476f4376a43d9cb3c32ae47800d5efe442cfa542284c5105e6d64afd1d09112c3f36f3d10b3576de428 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=5 | ||
|
||
inherit flag-o-matic autotools-utils | ||
|
||
DESCRIPTION="A small Jabber console client with various features, like MUC, SSL, PGP" | ||
HOMEPAGE="http://mcabber.com/" | ||
#REV="a18e1b488f1c" | ||
#SRC_URI="http://mcabber.com/hg/index.cgi/archive/${REV}.tar.gz -> ${P}.tar.gz" | ||
SRC_URI="http://mcabber.com/files/${P}.tar.bz2" | ||
|
||
#S=${WORKDIR}/${PN}-${REV}/${PN} | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" | ||
|
||
IUSE="aspell crypt idn modules otr spell ssl vim-syntax" | ||
|
||
LANGS="cs de fr it nl pl ru uk" | ||
# localized help versions are installed only, when LINGUAS var is set | ||
for i in ${LANGS}; do | ||
IUSE="${IUSE} linguas_${i}" | ||
done; | ||
|
||
RDEPEND="crypt? ( >=app-crypt/gpgme-1.0.0 ) | ||
otr? ( >=net-libs/libotr-3.1.0 ) | ||
aspell? ( app-text/aspell ) | ||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) | ||
idn? ( net-dns/libidn ) | ||
spell? ( app-text/enchant ) | ||
dev-libs/glib:2 | ||
sys-libs/ncurses:0= | ||
>=net-libs/loudmouth-1.4.3-r1[ssl?]" | ||
DEPEND="${RDEPEND} | ||
virtual/pkgconfig" | ||
|
||
## autotools-utils.eclass settings | ||
AUTOTOOLS_AUTORECONF="1" | ||
AUTOTOOLS_IN_SOURCE_BUILD="1" | ||
DOCS=( AUTHORS ChangeLog NEWS README TODO mcabberrc.example doc/README_PGP.txt ) | ||
|
||
pkg_setup() { | ||
if use aspell && use spell; then | ||
ewarn "NOTE: You have both USE flags 'aspell' and 'spell' enabled, enchant (USE flag 'spell') will be preferred." | ||
fi | ||
} | ||
|
||
src_configure() { | ||
local myeconfargs=( | ||
$(use_enable crypt gpgme) \ | ||
$(use_enable otr) \ | ||
$(use_enable aspell) \ | ||
$(use_enable spell enchant) \ | ||
$(use_enable modules) \ | ||
$(use_with idn libidn) | ||
) | ||
autotools-utils_src_configure | ||
} | ||
|
||
src_install() { | ||
autotools-utils_src_install | ||
|
||
# clean unneeded language documentation | ||
for i in ${LANGS}; do | ||
use linguas_${i} || rm -rf "${ED}"/usr/share/${PN}/help/${i} | ||
done | ||
|
||
# contrib themes | ||
insinto /usr/share/${PN}/themes | ||
doins "${S}"/contrib/themes/* | ||
|
||
# contrib generic scripts | ||
exeinto /usr/share/${PN}/scripts | ||
doexe "${S}"/contrib/*.{pl,py} | ||
|
||
# contrib event scripts | ||
exeinto /usr/share/${PN}/scripts/events | ||
doexe "${S}"/contrib/events/* | ||
|
||
if use vim-syntax; then | ||
cd contrib/vim/ || die | ||
|
||
insinto /usr/share/vim/vimfiles/syntax | ||
doins mcabber_log-syntax.vim | ||
|
||
insinto /usr/share/vim/vimfiles/ftdetect | ||
doins mcabber_log-ftdetect.vim | ||
fi | ||
} | ||
|
||
pkg_postinst() { | ||
elog | ||
elog "MCabber requires you to create a subdirectory .mcabber in your home" | ||
elog "directory and to place a configuration file there." | ||
elog "An example mcabberrc was installed as part of the documentation." | ||
elog "To create a new mcabberrc based on the example mcabberrc, execute the" | ||
elog "following commands:" | ||
elog | ||
elog " mkdir -p ~/.mcabber" | ||
elog " bzcat ${EROOT}usr/share/doc/${PF}/mcabberrc.example.bz2 >~/.mcabber/mcabberrc" | ||
elog | ||
elog "Then edit ~/.mcabber/mcabberrc with your favorite editor." | ||
elog | ||
elog "See the CONFIGURATION FILE and FILES sections of the mcabber" | ||
elog "manual page (section 1) for more information." | ||
elog | ||
elog "From version 0.9.0 on, MCabber supports PGP encryption of messages." | ||
elog "See README_PGP.txt for details." | ||
echo | ||
einfo "Check out ${EROOT}usr/share/${PN} for contributed themes and event scripts." | ||
echo | ||
} |