Opened 7 years ago

Closed 7 years ago

#36671 closed submission (fixed)

texstudio @ 2.5 - new port

Reported by: m.matze@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: texstudio

Description

Hello,

I would like to provide a port file for "texstudio". TexStudio is an LaTeX editor. The portfile and patches are attached. I would put it in the category "editors"

Attachments (5)

texstudio.zip (1.9 KB) - added by m.matze@… 7 years ago.
Port file
Portfile (1.8 KB) - added by ryandesign (Ryan Schmidt) 7 years ago.
patch-texstudio.pro.diff (852 bytes) - added by ryandesign (Ryan Schmidt) 7 years ago.
main.log (16.0 KB) - added by ryandesign (Ryan Schmidt) 7 years ago.
port.log (442.6 KB) - added by m.matze@… 7 years ago.
Log file of the port installation using the modified Portfile

Download all attachments as: .zip

Change History (14)

Changed 7 years ago by m.matze@…

Attachment: texstudio.zip added

Port file

comment:1 Changed 7 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Thanks!

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

You've coded the port to fetch from their Subversion repository revision 3379. This appears to be the 2.5 release. (2.5 was tagged in 3378 and 3379 just updates the web page to reference that version.) So is there any reason why we're not fetching from the 2.5 source tarball, which we would greatly prefer over fetching from Subversion?

comment:3 Changed 7 years ago by ryandesign (Ryan Schmidt)

The patch you included hardcodes the path /opt/local. MacPorts could be installed in any prefix; this needs to be reinplaced with the current value of ${prefix}.

By the way, unless the files are enormous, it's best to attach individual text files to the ticket so that they can be opened and read right here in the browser rather than having to download and decompress them.

comment:4 Changed 7 years ago by ryandesign (Ryan Schmidt)

I'm attaching a revised portfile and patch. It doesn't build for me; the error is:

error: unable to read PCH file: 'Is a directory'

I'll attach the log too.

Changed 7 years ago by ryandesign (Ryan Schmidt)

Attachment: Portfile added

Changed 7 years ago by ryandesign (Ryan Schmidt)

Attachment: patch-texstudio.pro.diff added

Changed 7 years ago by ryandesign (Ryan Schmidt)

Attachment: main.log added

comment:5 in reply to:  2 Changed 7 years ago by m.matze@…

Replying to ryandesign@…:

You've coded the port to fetch from their Subversion repository revision 3379. This appears to be the 2.5 release. (2.5 was tagged in 3378 and 3379 just updates the web page to reference that version.) So is there any reason why we're not fetching from the 2.5 source tarball, which we would greatly prefer over fetching from Subversion?

I used the svn version and not the source code as I frequently build the Mac Version of texstudio and this is always based on the svn code as recommended from one of the programmers. There is no problem to change it to the source code snapshots.

comment:6 in reply to:  4 ; Changed 7 years ago by m.matze@…

Replying to ryandesign@…:

I'm attaching a revised portfile and patch. It doesn't build for me; the error is:

error: unable to read PCH file: 'Is a directory'

I'll attach the log too.

I'll check it together with the programmers of texstudio and come back with a working file.

comment:7 in reply to:  6 Changed 7 years ago by m.matze@…

Thanks for the proposed changes. I tried your modified version and it worked well for me. I'll attached my log file for your information. Further comments about your error might take some days.

Changed 7 years ago by m.matze@…

Attachment: port.log added

Log file of the port installation using the modified Portfile

comment:8 Changed 7 years ago by ryandesign (Ryan Schmidt)

What version of Xcode are you running?

comment:9 Changed 7 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

Your log shows you're on Lion and that the port was building using llvm-gcc-4.2. This says to me that you're probably using Xcode 4.0 or 4.1—or were when qt4-mac was installed—because as of Xcode 4.2 we use clang by default. I had tried blacklisting clang before and it didn't make a difference, but I had neglected to realize/remember that qmake does not respect the MacPorts compiler choice by default, and instead uses the compiler chosen at the time qt4-mac was built. I was able to build the port with llvm-gcc-4.2 after working around that problem. Please let the developers know that they need to work on making their software compile with clang. The port is committed in r98947.

Note: See TracTickets for help on using tickets.