Opened 11 years ago

Last modified 11 years ago

#38150 new submission

ndmanager-plugins @1.4.6

Reported by: FlorianFranzen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: g5pw (Aljaž Srebrnič)
Port: ndmanager-plugins

Description

Port attached. Since I use this software myself I would be interested in also maintaining it.

This port can not be installed without running install twice, because of docbook and xslt. The offical bug report to the error that occurs just suggests to run make again, which is pretty much what happens if you run install again. I added a waring to the configure step, to tell the user about it.

Furthermore the original source uses locate to find the docbook xsl files. Therefore the locate database must be up to date or updated prior to the installation. The configure step therefore issues a warning to the user.

The python based plugins could not be ported due to a pyQt dependency, I therefore disabled them completely.

Attachments (7)

patch-scripts-colors.diff (2.2 KB) - added by FlorianFranzen@… 11 years ago.
patch-sed.diff (7.2 KB) - added by FlorianFranzen@… 11 years ago.
patch-makefile_no-python-plugins.diff (1.1 KB) - added by FlorianFranzen@… 11 years ago.
patch-src-process_extraspikes-strdupa.diff (926 bytes) - added by FlorianFranzen@… 11 years ago.
patch-src-process_medianthreshold-strdupa.diff (517 bytes) - added by FlorianFranzen@… 11 years ago.
patch-src-process_pca-makefile.diff (460 bytes) - added by FlorianFranzen@… 11 years ago.
Portfile (3.1 KB) - added by FlorianFranzen@… 11 years ago.

Download all attachments as: .zip

Change History (13)

Changed 11 years ago by FlorianFranzen@…

Attachment: patch-scripts-colors.diff added

Changed 11 years ago by FlorianFranzen@…

Attachment: patch-sed.diff added

Changed 11 years ago by FlorianFranzen@…

Changed 11 years ago by FlorianFranzen@…

Changed 11 years ago by FlorianFranzen@…

Changed 11 years ago by FlorianFranzen@…

comment:1 Changed 11 years ago by FlorianFranzen@…

Cc: FlorianFranzen@… added

Cc Me!

comment:2 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Cc: g5pw@… added; FlorianFranzen@… removed

Changed 11 years ago by FlorianFranzen@…

Attachment: Portfile added

comment:3 Changed 11 years ago by FlorianFranzen@…

Fixed maintainer, indentation and distfiles value.

comment:4 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Ok, I checked the portfile and there are a few issues still:

  • all the patching with sed in the configure phase should be done in the pre- or post-patch phase. They need to be done the Tcl way, using reinplace and the file command.
  • if the port does not have a configure phase, use_configure no should be used.
  • if there is no configure phase, care must be taken to ensure we are [UsingTheRightCompiler].
  • why does the success of compilation rely on locate?!?
  • messages should be printed in pre-configure, or you could add notes with the notes "note text" command.

comment:5 in reply to:  4 ; Changed 11 years ago by FlorianFranzen@…

Replying to g5pw@…:

  • all the patching with sed in the configure phase should be done in the pre- or post-patch phase. They need to be done the Tcl way, using reinplace and the file command.

Sure, I can look into that.

  • if the port does not have a configure phase, use_configure no should be used.
  • if there is no configure phase, care must be taken to ensure we are [UsingTheRightCompiler].

I will look into that as well, but it well be a loot of patching, since only manual created makefiles are used.

  • why does the success of compilation rely on locate?!?

I really dont know the design decision behind it. It is used to locate the docbook files to build the documentation. I rather updated locate db instead of trying to add a hard coded path, but I agree that it rather a "works-for-me" kind of fix.

  • messages should be printed in pre-configure, or you could add notes with the notes "note text" command.

Ok, I did not know that. I will add it.

comment:6 in reply to:  5 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Replying to FlorianFranzen@…:

Replying to g5pw@…:

  • if the port does not have a configure phase, use_configure no should be used.
  • if there is no configure phase, care must be taken to ensure we are [UsingTheRightCompiler].

I will look into that as well, but it well be a loot of patching, since only manual created makefiles are used.

Hmm.. What do you mean by that? Can't we just set $(CC) to specify a compiler?

  • why does the success of compilation rely on locate?!?

I really dont know the design decision behind it. It is used to locate the docbook files to build the documentation. I rather updated locate db instead of trying to add a hard coded path, but I agree that it rather a "works-for-me" kind of fix.

Well, the usual way to go at it is to use find or better, fs-traverse.

Note: See TracTickets for help on using tickets.