Page MenuHomeFreeBSD

editors/texworks: Update to version 0.6.2
ClosedPublic

Authored by rigoletto on Sep 14 2018, 10:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 12:18 PM
Unknown Object (File)
Tue, Oct 29, 7:10 AM
Unknown Object (File)
Mon, Oct 28, 10:58 AM
Unknown Object (File)
Mon, Oct 28, 9:23 AM
Unknown Object (File)
Sat, Oct 26, 4:48 AM
Unknown Object (File)
Mon, Oct 21, 7:58 AM
Unknown Object (File)
Sat, Oct 19, 12:22 AM
Unknown Object (File)
Fri, Oct 18, 11:24 AM
Subscribers

Details

Summary

PR: 200302 ( re-using )

  • update to v0.6.2
  • switch to Qt5

Thanks!

Test Plan

SOLVED

Both FLAVORs ( Qt4 and Qt5 ) build fine using make, but the Qt5
version won't build on poudriere:

CMake Error at /usr/local/share/cmake/Modules/FindQt4.cmake:1313 (message):
  Found unsuitable Qt version "5.11.1" from /usr/local/bin/qmake, this code
  requires Qt 4.x
Call Stack (most recent call first):
  CMakeLists.txt:274 (FIND_PACKAGE)

For some reason on poudriere it is ignoring something, and trying to build the
Qt4 version instead.

Please, note:

  • the Qt5 version is default upstream
  • building the Qt5 version using make doesn't ever need:
CMAKE_ARGS+=	-DDESIRED_QT_VERSION=5

SOLVED

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rigoletto edited the test plan for this revision. (Show Details)
rigoletto edited the test plan for this revision. (Show Details)
linimon retitled this revision from Update to version 0.6.2 to editors/texworks: Update to version 0.6.2.Sep 15 2018, 12:33 AM
editors/texworks/Makefile
8 ↗(On Diff #48066)

It is better to use the flavor helpers and use static strings.

It looks like you are missing a flag to make it build the Qt5 version then :)

editors/texworks/Makefile
36 ↗(On Diff #48066)

^qmake should probably be _build only.

42 ↗(On Diff #48066)

^ same here

patch-TeXworks.pro is not yet removed, I think

I think you're missing dependencies in USE_QT for Qt5. The CMakeFiles.txt (line 257) falls to Qt4 if the desired version is Qt=4 or Qt5 has not been found.

You can find the components it looks for on lines 200-208 -- in paritcular, it is probably uitools.

rigoletto marked 3 inline comments as done.

Fixing. Build fine now. :-)

Thanks!

flavors looks ok. If there are ports depending on this make sure they depend on the correct pkgname.

rigoletto edited the test plan for this revision. (Show Details)

There is nothing depending on editors/texworks. Thanks.

Some necessary improvements. Thanks!

Get rid of the pkg-plist file.

mat requested changes to this revision.Sep 18 2018, 7:06 AM
mat added inline comments.
editors/texworks/Makefile
18 ↗(On Diff #48150)

Flavors are local to a port and is not transitive. FLAVOR cannot be used in dependencies lines.

qt4_LIB_DEPENDS=  libpoppler-qt4.so:graphics/poppler-qt4
qt5_LIB_DEPENDS=  libpoppler-qt5.so:graphics/poppler-qt5
This revision now requires changes to proceed.Sep 18 2018, 7:06 AM

Fix FLAVOR specific dependencies.

Thanks!

ok, now, it's ok :-)

Oki then, let's give @hrs some time to look at it :)

Please get rid of the flavors again. poppler-qt4 will be dropped from the tree soon, so it makes sense to switch this to Qt5 only already.

This revision now requires changes to proceed.Oct 7 2018, 11:46 AM
editors/texworks/Makefile
30 ↗(On Diff #48874)

^ no need for +=

Can you prepare a commit message? [also remember there is a PR for this]

editors/texworks: Update to version 0.6.2

Texworks is available now as Qt5 only because the upcoming poppler update will not include a Qt4 version.

PR: 200302
Submitted by: tkato432@yahoo.com (original version)
Reviewed by: mat (mentor)
Approved by: tcberner (mentor), hrs (maintainer, timeout)
Differential Revision: https://reviews.freebsd.org/D17177

Macro makeitso:

[with the += -> = change ^^]

Removing '+' from CMAKE_ARG.

Thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Oct 14 2018, 6:28 PM
This revision was automatically updated to reflect the committed changes.
head/editors/texworks/Makefile
45–51

Wrong place in the Makefile. They should go before options. See Chapter 15. Order of Variables in Port Makefiles.