forked from sakaki-/sakaki-tools
-
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.
Add porthole-0.6.1-r6 (patch missing PORTDIR)
This is just a temporary patch, the value of the main repo should be looked up properly, per #546210
- Loading branch information
Showing
7 changed files
with
162 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST porthole-0.6.1.tar.bz2 958696 BLAKE2B e4eb7493a66278cd7d16ac68304fe74ad8623054a95bb3dca84b0b8236f76cb9b0a92f446d1ffd95f907c29d703d93bdd48e8e5064485b69282e8680f5fcb658 SHA512 9bc1d79c587ad8228b9bb4eee6cb32559a5d7b6a9f4f6ece752fce9030f71fdbfd6158d7a2a055641b63df1f0a1c31995747e15b618de79cd8a7a56e4d8f634c |
17 changes: 17 additions & 0 deletions
17
app-portage/porthole/files/porthole-0.6.1-masking_status.patch
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,17 @@ | ||
Index: porthole/backends/portagelib.py | ||
=================================================================== | ||
--- porthole/backends/portagelib.py (revision 1209) | ||
+++ porthole/backends/portagelib.py (working copy) | ||
@@ -452,7 +452,11 @@ | ||
|
||
|
||
def get_masking_status(ebuild): | ||
- return portage.getmaskingstatus(ebuild) | ||
+ try: | ||
+ status = portage.getmaskingstatus(ebuild) | ||
+ except KeyError: | ||
+ status = ['deprecated'] | ||
+ return status | ||
|
||
|
||
def get_masking_reason(ebuild): |
14 changes: 14 additions & 0 deletions
14
app-portage/porthole/files/porthole-0.6.1-missing-attribute.patch
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,14 @@ | ||
diff -uNr porthole/db/user_configs.py.old porthole/db/user_configs.py | ||
|
||
--- porthole/db/user_configs.py.old 2010-11-27 13:34:35.000000000 +0600 | ||
+++ porthole/db/user_configs.py 2010-11-27 13:31:24.000000000 +0600 | ||
@@ -364,7 +364,7 @@ | ||
debug.dprint("USER_CONFIGS: set_user_config(): add: " + | ||
"%s,\n remove: %s " %(str(add),str(remove))) | ||
set_config.set_user_config(filename=file, name=name, ebuild=ebuild, | ||
- comment=comment, username=privileges.USER, | ||
+ comment=comment, username=privileges.user, | ||
add=add, remove=remove) | ||
self.set_config_callback() | ||
else: | ||
|
19 changes: 19 additions & 0 deletions
19
app-portage/porthole/files/porthole-0.6.1-missing_import.patch
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,19 @@ | ||
--- porthole/db/user_configs.py 2010/03/20 12:32:29 1217 | ||
+++ porthole/db/user_configs.py 2010/03/20 14:10:46 1218 | ||
@@ -36,6 +36,7 @@ | ||
from porthole import backends | ||
portage_lib = backends.portage_lib | ||
from porthole.utils import debug | ||
+from porthole.privilege import controller as privileges | ||
|
||
## set up this module to act as a user configs data server, | ||
## watch the user configs for changes and auto update | ||
@@ -363,7 +364,7 @@ | ||
debug.dprint("USER_CONFIGS: set_user_config(): add: " + | ||
"%s,\n remove: %s " %(str(add),str(remove))) | ||
set_config.set_user_config(filename=file, name=name, ebuild=ebuild, | ||
- comment=comment, username=priviliges.USER, | ||
+ comment=comment, username=privileges.USER, | ||
add=add, remove=remove) | ||
self.set_config_callback() | ||
else: |
16 changes: 16 additions & 0 deletions
16
app-portage/porthole/files/porthole-0.6.1-missing_portdir.patch
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,16 @@ | ||
Index: porthole/backends/portagelib.py | ||
=================================================================== | ||
--- porthole/backends/portagelib.py (revision 1209) | ||
+++ porthole/backends/portagelib.py (working copy) | ||
@@ -700,7 +700,10 @@ | ||
#self.db=self.portdb.auxdbmodule._db_module | ||
#print >>stderr, self.db.__dict__.keys() | ||
#self.db.dbapi2.check_same_thread = False | ||
- self.portdir = self.settings.environ()['PORTDIR'] | ||
+ try: | ||
+ self.portdir = self.settings.environ()['PORTDIR'] | ||
+ except KeyError: | ||
+ self.portdir = "/usr/portage" | ||
self.config_root = self.settings['PORTAGE_CONFIGROOT'] | ||
# is PORTDIR_OVERLAY always defined? | ||
self.portdir_overlay = get_portage_environ('PORTDIR_OVERLAY') |
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>Gentoo Portage tools team</name> | ||
</maintainer> | ||
<maintainer type="person"> | ||
<email>[email protected]</email> | ||
<name>Brian Dolbec</name> | ||
<description>Upstream Maintainer (please CC on bugs)</description> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="sourceforge">porthole</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
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,79 @@ | ||
# Copyright 1999-2018 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="5" | ||
|
||
PYTHON_COMPAT=(python2_7) | ||
PYTHON_REQ_USE="threads(+),xml(+)" | ||
|
||
inherit distutils-r1 eutils | ||
|
||
DESCRIPTION="A GTK+-based frontend to Portage" | ||
HOMEPAGE="http://porthole.sourceforge.net" | ||
SRC_URI="mirror://sourceforge/porthole/${P}.tar.bz2" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="amd64 arm ppc ~ppc64 sparc x86 ~x86-fbsd" | ||
IUSE="nls" | ||
LANGS="de pl ru vi it fr tr" | ||
|
||
RDEPEND=" | ||
|| ( | ||
>=sys-apps/portage-2.1[${PYTHON_USEDEP}] | ||
sys-apps/portage-mgorny[${PYTHON_USEDEP}] | ||
) | ||
dev-python/pygtk:2[${PYTHON_USEDEP}] | ||
gnome-base/libglade:2.0 | ||
dev-python/pygtksourceview:2[${PYTHON_USEDEP}] | ||
nls? ( virtual/libintl )" | ||
DEPEND="${RDEPEND} | ||
nls? ( >=sys-devel/gettext-0.14 )" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${P}-masking_status.patch" # bug 307037 | ||
"${FILESDIR}/${P}-missing_import.patch" # bug 323179 | ||
"${FILESDIR}/${P}-missing-attribute.patch" #bug 323179 | ||
"${FILESDIR}/${P}-missing_portdir.patch" | ||
) | ||
|
||
src_compile(){ | ||
# Compile localizations if necessary | ||
if use nls ; then | ||
cd scripts | ||
./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed" | ||
fi | ||
} | ||
|
||
python_install_all() { | ||
distutils-r1_python_install_all | ||
|
||
dodoc TODO README NEWS AUTHORS | ||
|
||
keepdir /var/log/porthole | ||
fperms g+w /var/log/porthole | ||
keepdir /var/db/porthole | ||
fperms g+w /var/db/porthole | ||
|
||
# nls | ||
if use nls; then | ||
# mo directory doesn't exists with nls enabled and unsupported LINGUAS | ||
[[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/* | ||
fi | ||
} | ||
|
||
pkg_preinst() { | ||
chgrp portage "${D}"/var/log/porthole | ||
chgrp portage "${D}"/var/db/porthole | ||
} | ||
|
||
pkg_postinst() { | ||
einfo | ||
einfo "Porthole has updated the way that the upgrades are sent to emerge." | ||
einfo "In this new way the user needs to set any 'Settings' menu emerge options" | ||
einfo "Porthole automatically adds '--oneshot' for all upgrades selections" | ||
einfo "Other options recommended are '--noreplace' along with '--update'" | ||
einfo "They allow for portage to skip any packages that might have already" | ||
einfo "been upgraded as a dependency of another previously upgraded package" | ||
einfo | ||
} |