pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/calibre Redo linking to work like in older Calibr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f8b34e232ee
branches:  trunk
changeset: 353117:7f8b34e232ee
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Sep 29 12:13:43 2016 +0000

description:
Redo linking to work like in older Calibre, fixing build with native X.
Bump revision.

diffstat:

 misc/calibre/Makefile                                  |   3 +-
 misc/calibre/distinfo                                  |   6 +-
 misc/calibre/patches/patch-setup_build.py              |  36 ++++++++++-------
 misc/calibre/patches/patch-setup_build__environment.py |  26 +++++++++++++
 misc/calibre/patches/patch-setup_extensions.json       |  17 --------
 5 files changed, 52 insertions(+), 36 deletions(-)

diffs (125 lines):

diff -r 33c82053ef95 -r 7f8b34e232ee misc/calibre/Makefile
--- a/misc/calibre/Makefile     Thu Sep 29 12:10:50 2016 +0000
+++ b/misc/calibre/Makefile     Thu Sep 29 12:13:43 2016 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.155 2016/09/18 21:56:47 wiz Exp $
+# $NetBSD: Makefile,v 1.156 2016/09/29 12:13:43 joerg Exp $
 
 DISTNAME=      calibre-2.68.0
+PKGREVISION=   1
 CATEGORIES=    misc
 #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/}
 MASTER_SITES=  http://download.calibre-ebook.com/${PKGVERSION_NOREV}/
diff -r 33c82053ef95 -r 7f8b34e232ee misc/calibre/distinfo
--- a/misc/calibre/distinfo     Thu Sep 29 12:10:50 2016 +0000
+++ b/misc/calibre/distinfo     Thu Sep 29 12:13:43 2016 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.76 2016/09/18 21:56:47 wiz Exp $
+$NetBSD: distinfo,v 1.77 2016/09/29 12:13:43 joerg Exp $
 
 SHA1 (calibre-2.68.0.tar.xz) = 47159097f78d282ba5cb5bd7f55ce88e242397e4
 RMD160 (calibre-2.68.0.tar.xz) = 1b4e4cd91bccdca3c52b9feb775a92d966697921
 SHA512 (calibre-2.68.0.tar.xz) = 60d70f494b80f6fd10266162f54284e824207c9105e50d21ea0a14f6e612a911d2e6475c78cb4b499f3e411893ab2c7255c7b762ac8c5bfa5040e6a2efb100c1
 Size (calibre-2.68.0.tar.xz) = 39949696 bytes
-SHA1 (patch-setup_build.py) = 9699b5badd044aacd72b223c182ab14f38eb1dcb
-SHA1 (patch-setup_extensions.json) = a08c9c6675f9b7926fa53dbb74846ed47c4298c7
+SHA1 (patch-setup_build.py) = 4a601e44fb69085c1f05ca0f90b73ce3f6d51ba6
+SHA1 (patch-setup_build__environment.py) = d44460d96f9fb76cd80814a9cba8b153c52b5bfc
 SHA1 (patch-src_calibre_linux.py) = 16c3122a612ec9996f774c5c2c9d40a475723662
diff -r 33c82053ef95 -r 7f8b34e232ee misc/calibre/patches/patch-setup_build.py
--- a/misc/calibre/patches/patch-setup_build.py Thu Sep 29 12:10:50 2016 +0000
+++ b/misc/calibre/patches/patch-setup_build.py Thu Sep 29 12:13:43 2016 +0000
@@ -1,21 +1,27 @@
-$NetBSD: patch-setup_build.py,v 1.1 2016/07/24 07:08:54 wiz Exp $
+$NetBSD: patch-setup_build.py,v 1.2 2016/09/29 12:13:43 joerg Exp $
 
-Add rpath to linker command.
-Look in libtool directory for file.
+Find libtool output correctly.
+Fix linking against native X.
 
---- setup/build.py.orig        2016-07-22 02:21:05.000000000 +0000
+--- setup/build.py.orig        2016-09-29 10:28:31.000000000 +0000
 +++ setup/build.py
-@@ -251,8 +251,7 @@ class Build(Command):
-         return ['-I'+x for x in dirs]
- 
-     def lib_dirs_to_ldflags(self, dirs):
--        pref = '/LIBPATH:' if iswindows else '-L'
--        return [pref+x for x in dirs]
-+        return ['-L'+x+' -Wl,-R'+x for x in dirs]
- 
-     def libraries_to_ldflags(self, dirs):
-         pref = '' if iswindows else '-l'
-@@ -452,7 +451,7 @@ class Build(Command):
+@@ -368,6 +368,7 @@ class Build(Command):
+             INCLUDEPATH += {freetype}
+             DESTDIR = {destdir}
+             CONFIG -= create_cmake  # Prevent qmake from generating a cmake build file which it puts in the calibre src directory
++            QMAKE_LFLAGS += $(COMPILER_RPATH_FLAG)$(X11BASE)/lib
+             QMAKE_LIBS_PRIVATE += {glib} {fontconfig}
+             ''').format(
+                 headers=' '.join(headers), sources=' '.join(sources), others=' '.join(others), destdir=self.d(
+@@ -426,6 +427,7 @@ class Build(Command):
+         SOURCES = {sources}
+         INCLUDEPATH += {sipinc} {pyinc}
+         VERSION = {ver}
++        QMAKE_LFLAGS += $(COMPILER_RPATH_FLAG)$(X11BASE)/lib
+         win32 {{
+             LIBS += {py_lib}
+             TARGET_EXT = .dll
+@@ -456,7 +458,7 @@ class Build(Command):
          if iswindows:
              qmc += ['-spec', qmakespec]
          fext = 'dll' if iswindows else 'dylib' if isosx else 'so'
diff -r 33c82053ef95 -r 7f8b34e232ee misc/calibre/patches/patch-setup_build__environment.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/calibre/patches/patch-setup_build__environment.py    Thu Sep 29 12:13:43 2016 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-setup_build__environment.py,v 1.3 2016/09/29 12:13:43 joerg Exp $
+
+Always build like on Linux.
+
+--- setup/build_environment.py.orig    2016-09-29 09:55:14.000000000 +0000
++++ setup/build_environment.py
+@@ -97,8 +97,8 @@ def get_sip_dir():
+ pyqt['pyqt_sip_dir'] = get_sip_dir()
+ pyqt['sip_inc_dir'] = os.environ.get('SIP_INC_DIR', sysconfig.get_path('include'))
+ 
+-glib_flags = subprocess.check_output([PKGCONFIG, '--libs', 'glib-2.0']).strip() if islinux else ''
+-fontconfig_flags = subprocess.check_output([PKGCONFIG, '--libs', 'fontconfig']).strip() if islinux else ''
++glib_flags = subprocess.check_output([PKGCONFIG, '--libs', 'glib-2.0']).strip()
++fontconfig_flags = subprocess.check_output([PKGCONFIG, '--libs', 'fontconfig']).strip()
+ qt_inc = pyqt['inc']
+ qt_lib = pyqt['lib']
+ ft_lib_dirs = []
+@@ -121,7 +121,7 @@ QT_DLLS = ['Qt5' + x for x in (
+ 'WebKit', 'WebKitWidgets', 'Widgets',  'Multimedia', 'MultimediaWidgets', 'Xml',  # 'XmlPatterns',
+ )]
+ QT_PLUGINS = ('imageformats', 'audio', 'iconengines', 'mediaservice', 'platforms', 'playlistformats', 'printsupport', 'sqldrivers')
+-if islinux:
++if True:
+     # platformthemes cause crashes in Ubuntu
+     QT_PLUGINS += ('platforminputcontexts', 'generic',)
+ 
diff -r 33c82053ef95 -r 7f8b34e232ee misc/calibre/patches/patch-setup_extensions.json
--- a/misc/calibre/patches/patch-setup_extensions.json  Thu Sep 29 12:10:50 2016 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-setup_extensions.json,v 1.1 2016/07/24 07:08:54 wiz Exp $
-
-Add X11 libraries to search path.
-XXX: should be using ${PREFIX} and ${X11BASE}
-
---- setup/extensions.json.orig 2016-07-22 02:21:05.000000000 +0000
-+++ setup/extensions.json
-@@ -141,7 +141,8 @@
-         "sources": "calibre/gui2/pictureflow/pictureflow.cpp",
-         "headers": "calibre/gui2/pictureflow/pictureflow.h",
-         "sip_files": "calibre/gui2/pictureflow/pictureflow.sip",
--        "inc_dirs": "calibre/gui2/pictureflow"
-+        "inc_dirs": "calibre/gui2/pictureflow",
-+        "lib_dirs": "/usr/X11R7/lib /usr/pkg/X11R7/lib"
-     },
-     {
-         "name": "progress_indicator",



Home | Main Index | Thread Index | Old Index