* [gentoo-commits] repo/gentoo:master commit in: app-text/bibus/, app-text/bibus/files/
@ 2015-10-22 10:13 Justin Lecher
0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2015-10-22 10:13 UTC (permalink / raw
To: gentoo-commits
commit: e10be8fca2dbab93315cd90eb28245194ebf7c44
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 22 10:08:49 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Oct 22 10:13:10 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e10be8fc
app-text/bibus: Fix for gentoo specific paths and fix for lo-4
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=485396
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562214
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
app-text/bibus/Manifest | 1 +
...bibus-1.5.2-r1.ebuild => bibus-1.5.2-r2.ebuild} | 10 +++++--
app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch | 31 ++++++++++++++++++++++
3 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/app-text/bibus/Manifest b/app-text/bibus/Manifest
index 04ed182..ad942e9 100644
--- a/app-text/bibus/Manifest
+++ b/app-text/bibus/Manifest
@@ -1 +1,2 @@
+DIST bibus-1.5.2-lo-4.patch.xz 13196 SHA256 b7147230929c304ab357c6a725c5cabbd577607e6200df968cdf2c057603c8a1 SHA512 68b90574e9dd0bb3e2cc89c539ff35febdf4ac37dfb65c06709d21b62fdda0108c93f05d37ab96bf52c4f99bbe20caa361d562c297b05dc7ea37404eea659fd1 WHIRLPOOL d807d81277fac722c50d98575939142a6f1f5a1e9eb88dec0acf0053349f54ecce7d7dcf070742b143bbf166704994b401eeb1e1ecd3e32c351d9bc41c09d1d8
DIST bibus_1.5.2.orig.tar.gz 5411889 SHA256 c6c66d6bdce403b7791bf58cc16eeaae9f0e9d1c3f0ba8411f9f3e694d740f02 SHA512 33d091dacc707859a11010fcba57691a3e2726ae7579d601720b4398f7be29b580be978da8cd058fab491ec5b52dd3ce33c964a8d5077f8e80d8f0f387ffa2c4 WHIRLPOOL 964f13902a8a20d9e838784cf1f0a032bb2327cd28f3b2470c35a7394ae7f7536a7884d798a8308049a02f6976183ffb1c56cc4d8b20dce13f98033668a90d38
diff --git a/app-text/bibus/bibus-1.5.2-r1.ebuild b/app-text/bibus/bibus-1.5.2-r2.ebuild
similarity index 88%
rename from app-text/bibus/bibus-1.5.2-r1.ebuild
rename to app-text/bibus/bibus-1.5.2-r2.ebuild
index 17f6d3b..f4de2be 100644
--- a/app-text/bibus/bibus-1.5.2-r1.ebuild
+++ b/app-text/bibus/bibus-1.5.2-r2.ebuild
@@ -11,7 +11,10 @@ inherit eutils fdo-mime multilib python-r1 versionator
DESCRIPTION="Bibliographic and reference management software, integrates with L/OO.o and MS Word"
HOMEPAGE="http://bibus-biblio.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz"
+SRC_URI="
+ mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz
+ https://dev.gentoo.org/~jlec/distfiles/${P}-lo-4.patch.xz
+ "
LICENSE="GPL-2"
SLOT="0"
@@ -45,7 +48,10 @@ pkg_setup() {
}
src_prepare() {
- epatch "${FILESDIR}"/${P}-install.patch
+ epatch \
+ "${FILESDIR}"/${P}-install.patch \
+ "${FILESDIR}"/${P}-bibus.cfg.patch \
+ "${WORKDIR}"/${P}-lo-4.patch
}
src_compile() { :; }
diff --git a/app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch b/app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch
new file mode 100644
index 0000000..bfba0c0
--- /dev/null
+++ b/app-text/bibus/files/bibus-1.5.2-bibus.cfg.patch
@@ -0,0 +1,31 @@
+ bibusStart.py | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/bibusStart.py b/bibusStart.py
+index edfc19f..99c5381 100644
+--- a/bibusStart.py
++++ b/bibusStart.py
+@@ -17,12 +17,14 @@
+ # along with Bibus; if not, write to the Free Software
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ #
+-import ConfigParser,os,sys,urllib,urlparse
++import ConfigParser,os,sys,urllib,urlparse,site
+ cp=ConfigParser.ConfigParser()
+ fileName = sys.argv[0]
+ while os.path.islink(fileName): fileName = os.readlink(fileName)
+ sourcedir = os.path.abspath( os.path.dirname(fileName) )
+-cp.read( os.path.join(sourcedir,'bibus.cfg') )
++bibus_sitedir = os.path.join(site.getsitepackages()[0], 'bibus')
++bibus_cfg = os.path.join(bibus_sitedir, 'bibus.cfg')
++cp.read(bibus_cfg)
+ # We read first, then if it is not null we convert to absolute path
+ # otherwise, empty path will be converted to the current directory path
+ python = cp.get('PATH','python')
+@@ -69,5 +71,5 @@ else:
+ except KeyError:
+ os.environ[LIBPATH] = oopath
+ # starting Bibus
+-os.execl( python , os.path.basename(python) , QUOTE+ os.path.join(sourcedir,'bibus.py') +QUOTE )
++os.execl( python , os.path.basename(python) , QUOTE+ os.path.join(bibus_sitedir,'bibus.py') +QUOTE )
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-text/bibus/, app-text/bibus/files/
@ 2017-06-05 10:21 Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2017-06-05 10:21 UTC (permalink / raw
To: gentoo-commits
commit: cacaab1e23f5bfd4b429298564074828c614cb0d
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 5 10:13:50 2017 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Mon Jun 5 10:21:38 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cacaab1e
app-text/bibus: Use wxpython-3.0 with Debian patch (#601094)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
app-text/bibus/bibus-1.5.2-r3.ebuild | 86 +++++++++++++++
app-text/bibus/files/bibus-1.5.2-wx30.patch | 158 ++++++++++++++++++++++++++++
2 files changed, 244 insertions(+)
diff --git a/app-text/bibus/bibus-1.5.2-r3.ebuild b/app-text/bibus/bibus-1.5.2-r3.ebuild
new file mode 100644
index 00000000000..712ed76b631
--- /dev/null
+++ b/app-text/bibus/bibus-1.5.2-r3.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit fdo-mime python-r1 versionator
+
+DESCRIPTION="Bibliographic and reference management software, integrates with LO and MS Word"
+HOMEPAGE="http://bibus-biblio.sourceforge.net/"
+SRC_URI="
+ mirror://sourceforge/${PN}-biblio/${PN}_${PV}.orig.tar.gz
+ https://dev.gentoo.org/~jlec/distfiles/${P}-lo-4.patch.xz
+ "
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="mysql"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# Most of this mess is designed to give the choice of sqlite or mysql
+# but prefer sqlite. We also need to default to sqlite if neither is requested.
+# Cannot depend on virtual/ooo
+# bibus fails to start with app-office/openoffice-bin (bug #288232).
+RDEPEND="
+ ${PYTHON_DEPS}
+ app-office/libreoffice
+ dev-python/wxpython:3.0[${PYTHON_USEDEP}]
+ dev-db/sqliteodbc
+ dev-db/unixODBC
+ mysql? (
+ dev-python/mysql-python[${PYTHON_USEDEP}]
+ dev-db/myodbc
+ )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-install.patch
+ "${FILESDIR}"/${P}-bibus.cfg.patch
+ "${WORKDIR}"/${P}-lo-4.patch
+ "${FILESDIR}"/${P}-wx30.patch
+)
+
+pkg_setup() {
+ if [[ -d "/usr/$(get_libdir)/openoffice" ]] ; then
+ OFFICESUITE="/usr/$(get_libdir)/openoffice"
+ else
+ OFFICESUITE="/usr/$(get_libdir)/libreoffice"
+ fi
+}
+
+src_compile() { :; }
+
+src_install() {
+ einfo "Installing for ${OFFICESUITE}"
+ installation() {
+ emake \
+ DESTDIR="${D}" \
+ prefix="${EPREFIX}/usr" \
+ oopath="${OFFICESUITE}/program" \
+ ooure="${OFFICESUITE}/ure-link/lib" \
+ oobasis="${OFFICESUITE}/program" \
+ sysconfdir="${EPREFIX}/etc" \
+ pythondir="$(python_get_sitedir)" \
+ python=${PYTHON} \
+ install install-doc-en
+ }
+ python_foreach_impl installation
+ python_foreach_impl python_optimize
+
+ python_foreach_impl python_newscript bibusStart.py ${PN}
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/app-text/bibus/files/bibus-1.5.2-wx30.patch b/app-text/bibus/files/bibus-1.5.2-wx30.patch
new file mode 100644
index 00000000000..b5348674181
--- /dev/null
+++ b/app-text/bibus/files/bibus-1.5.2-wx30.patch
@@ -0,0 +1,158 @@
+Author: Jan Beyer <jan@beathovn.de>
+Copyright: Copyright 2014 Jan Beyer
+License: The same as the Bibus packaging.
+Description: Patch to migrate bibus from wxpython2.8 to wxpython 3.0
+ Thanks to Olly Betts for the script that did the main work:
+ http://anonscm.debian.org/cgit/collab-maint/wx-migration-tools.git
+
+--- a/ShortcutEd.py
++++ b/ShortcutEd.py
+@@ -27,7 +27,7 @@
+ self.category = category # edited category
+ self.short = short # current shortcuts list
+ # begin wxGlade: Capture.__init__
+- kwds["style"] = wx.DIALOG_MODAL|wx.CAPTION|wx.RESIZE_BORDER|wx.THICK_FRAME
++ kwds["style"] = wx.CAPTION|wx.RESIZE_BORDER|wx.RESIZE_BORDER
+ wx.Dialog.__init__(self, *args, **kwds)
+ self.label_1 = wx.StaticText(self, -1, _("Capture from field"))
+ self.choice_field = wx.Choice(self, -1, choices=[])
+@@ -110,7 +110,7 @@
+ self.parentshort = short # we keep a copy for updating it latter
+ self.db = db # connection to the database
+ # begin wxGlade: ShortcutEd.__init__
+- kwds["style"] = wx.DIALOG_MODAL|wx.CAPTION|wx.RESIZE_BORDER|wx.THICK_FRAME
++ kwds["style"] = wx.CAPTION|wx.RESIZE_BORDER|wx.RESIZE_BORDER
+ wx.Dialog.__init__(self, *args, **kwds)
+ self.list_shortcuts = wx.ListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_EDIT_LABELS|wx.LC_NO_HEADER|wx.LC_SINGLE_SEL|wx.SUNKEN_BORDER)
+ self.button_new = wx.Button(self, -1, _("New"))
+--- a/bibus.py
++++ b/bibus.py
+@@ -120,7 +120,7 @@
+ #
+ class Bibus(wx.App):
+ def OnInit(self):
+- wx.InitAllImageHandlers()
++ # no-op in wxPython2.8 and later: wx.InitAllImageHandlers()
+ self.SetAppName(APPNAME)
+ # reading and eventually converting the config file
+ if os.path.isfile( wx.StandardPaths.Get().GetUserDataDir() ): # old config file in $HOME/.bibus
+--- a/Pref_Shortcuts.py
++++ b/Pref_Shortcuts.py
+@@ -26,7 +26,7 @@
+ def __init__(self, categories, *args, **kwds):
+ self.categories = categories # current categories in parent. may be different from BIB.SHORTCUTS
+ # begin wxGlade: NewCategory.__init__
+- kwds["style"] = wx.DIALOG_MODAL|wx.CAPTION|wx.RESIZE_BORDER|wx.THICK_FRAME
++ kwds["style"] = wx.CAPTION|wx.RESIZE_BORDER|wx.RESIZE_BORDER
+ wx.Dialog.__init__(self, *args, **kwds)
+ self.label_1 = wx.StaticText(self, -1, _("Name"))
+ self.text_ctrl_name = wx.TextCtrl(self, -1, "")
+@@ -80,7 +80,7 @@
+ def onFile(self,evt):
+ tmpfilen = self.text_ctrl_name.GetValue()
+ if not tmpfilen: tmpfilen = 'shortcut'
+- filen = wx.FileSelector(_("Choose the file location and name"),default_filename=tmpfilen,parent=self, flags = wx.SAVE )
++ filen = wx.FileSelector(_("Choose the file location and name"),default_filename=tmpfilen,parent=self, flags = wx.FD_SAVE )
+ if filen:
+ self.text_ctrl_filen.SetValue(filen)
+
+--- a/moveFile.py
++++ b/moveFile.py
+@@ -96,7 +96,7 @@
+
+ if __name__ == "__main__":
+ app = wx.PySimpleApp(0)
+- wx.InitAllImageHandlers()
++ # no-op in wxPython2.8 and later: wx.InitAllImageHandlers()
+ dialog_1 = MoveFile(None, -1, "")
+ app.SetTopWindow(dialog_1)
+ dialog_1.Show()
+--- a/OOo.py
++++ b/OOo.py
+@@ -103,7 +103,7 @@
+ self.saveDoc()
+ self.finalize()
+ except bibOOo_IOError:
+- url = wx.FileSelector('Save as...',default_extension='odt',wildcard="%s (*.odt)|*.odt|%s (*.sxw)|*.sxw|%s (*.*)|*.*"%(_("OpenDocument Text"),_("OpenOffice.org Text Document"), _("All files")),flags=wx.SAVE|wx.OVERWRITE_PROMPT)
++ url = wx.FileSelector('Save as...',default_extension='odt',wildcard="%s (*.odt)|*.odt|%s (*.sxw)|*.sxw|%s (*.*)|*.*"%(_("OpenDocument Text"),_("OpenOffice.org Text Document"), _("All files")),flags=wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
+ if url == '':
+ return
+ else:
+--- a/BibFrame.py
++++ b/BibFrame.py
+@@ -971,7 +971,7 @@
+
+ def __getFile(self,question=_("Please choose the file encoding"),mode='r',enc='ascii'):
+ """Get file and encoding. Return open file or None"""
+- dlg = wx.FileDialog(self,_("Choose a File to import"),style = wx.OPEN | wx.CHANGE_DIR)
++ dlg = wx.FileDialog(self,_("Choose a File to import"),style = wx.FD_OPEN | wx.FD_CHANGE_DIR)
+ try:
+ answer = dlg.ShowModal()
+ filename = dlg.GetPath()
+@@ -1048,7 +1048,7 @@
+ # --------------------------------- File Export --------------------------------------------
+ def __saveFile(self,question=_("Please choose the file encoding"),mode='r',enc='latin_1'):
+ """Get file and encoding. Return open file or None"""
+- dlg = wx.FileDialog(self,_("Save as..."),style = wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)
++ dlg = wx.FileDialog(self,_("Save as..."),style = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT | wx.FD_CHANGE_DIR)
+ try:
+ answer = dlg.ShowModal()
+ filename = dlg.GetPath()
+@@ -1124,7 +1124,7 @@
+
+ def __saveFileHTML(self,question=_("Choose the destination file"),mode='w'):
+ """Get file. Return open file or None"""
+- dlg = wx.FileDialog(self,_("Save as..."),style = wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)
++ dlg = wx.FileDialog(self,_("Save as..."),style = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT | wx.FD_CHANGE_DIR)
+ try:
+ answer = dlg.ShowModal()
+ finally:
+@@ -1176,7 +1176,7 @@
+ ret = wx.GetSingleChoiceIndex(_('What do you want to export?'),_('Export'),[_('Selection'),_('Current key'),_('All')])
+ if ret == -1: return
+ # get the file destination
+- answer = wx.FileSelector(_("Choose the name of the SQLite database"), flags = wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR )
++ answer = wx.FileSelector(_("Choose the name of the SQLite database"), flags = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT | wx.FD_CHANGE_DIR )
+ if answer == '': return
+ # we create the database
+ try:
+@@ -1746,7 +1746,7 @@
+
+ arcstarttime=time.time()
+ archivename=time.strftime('bibusbackup_%y%m%d_%H%M%S.tar', time.localtime(arcstarttime))
+- dlg = wx.FileDialog(self,_("Archive all user data into file ..."),style = wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)
++ dlg = wx.FileDialog(self,_("Archive all user data into file ..."),style = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT | wx.FD_CHANGE_DIR)
+ dlg.SetDirectory(userDocsDir)
+ dlg.SetFilename(archivename)
+ dlg.SetWildcard("TAR archive (*.tar)|*.tar")
+--- a/FirstStart/MySQL_Setup.py
++++ b/FirstStart/MySQL_Setup.py
+@@ -533,7 +533,7 @@
+
+ if __name__ == "__main__":
+ app = wx.PySimpleApp(0)
+- wx.InitAllImageHandlers()
++ # no-op in wxPython2.8 and later: wx.InitAllImageHandlers()
+ MySQL_Setup = MySQL_Setup_Main(None, -1, "")
+ app.SetTopWindow(MySQL_Setup)
+ MySQL_Setup.Show()
+--- a/StyleEditor/FormatEditor.py
++++ b/StyleEditor/FormatEditor.py
+@@ -33,7 +33,7 @@
+
+ class FormatEditor(wx.Dialog):
+ def __init__(self, *args, **kwds):
+- #kwds["style"] = wx.TAB_TRAVERSAL | wx.CAPTION | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | wx.THICK_FRAME
++ #kwds["style"] = wx.TAB_TRAVERSAL | wx.CAPTION | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | wx.RESIZE_BORDER
+ kwds["style"] = wx.DEFAULT_FRAME_STYLE
+ self.filename = kwds['filename']
+ del kwds['filename']
+@@ -130,7 +130,7 @@
+ wx.MessageBox(_("The style name is not correct, please avoid: '/' under linux; '\\' and ':' under Windows"),_("Style name"),style=wx.OK|wx.ICON_ERROR)
+
+ # def SaveAs(self,evt):
+-# self.filename = wx.FileSelector(_('Where to save the style file?'), flags = wx.SAVE | wx.OVERWRITE_PROMPT)
++# self.filename = wx.FileSelector(_('Where to save the style file?'), flags = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
+ # #print "%r"%self.filename
+ # if self.filename:
+ # self.Save(evt)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-05 10:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 10:13 [gentoo-commits] repo/gentoo:master commit in: app-text/bibus/, app-text/bibus/files/ Justin Lecher
-- strict thread matches above, loose matches on Subject: below --
2017-06-05 10:21 Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox