Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #15090 (closed enhancement: fixed)

Opened 8 months ago

Last modified 8 months ago

vobcopy-1.1.1 new port

Reported by: 0booo5b02@… Owned by: jmr@…
Priority: Normal Milestone: Port Submissions
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

I would like [vobcopy] to be added to the macports repository (multimedia/vobcopy for example).

Vobcopy is a very usefull command line tool to copy/backup DVDs.

Attached you'll find the Portfile and a necessary path in the configure file.

Attachments

Portfile (0.7 KB) - added by 0booo5b02@… 8 months ago.
Portfile
patch-configure.sh (1.4 KB) - added by 0booo5b02@… 8 months ago.
Portfile.2 (0.6 KB) - added by 0booo5b02@… 8 months ago.

Change History

Changed 8 months ago by 0booo5b02@…

Portfile

Changed 8 months ago by 0booo5b02@…

follow-up: ↓ 2   Changed 8 months ago by jmr@…

Some suggested changes to the Portfile:

  • You can obfuscate your email address to help thwart spam harvesters, like so: sneakemail.com:0booo5b02. The output from 'port info' will still be the same.
  • You should use ${prefix} instead of hardcoding /opt/local in --with-dvdread-libs=/opt/local. You also don't need to specify --prefix=${prefix} in configure.args, since it is automatically set in configure.pre_args.
  • Since you're specifying the path to MacPorts' libdvdread, you don't want the dependency satisfied by something installed somewhere else, so you should use port:libdvdread rather than lib:libdvdread:libdvdread.
  • The cd command is deprecated, so don't use it. You should also generally use the built-in Tcl command file link -symbolic rather than calling ln via the system command. However, these points are actually irrelevant in this case, since you don't need the pre-configure phase. You can just use configure.cmd configure.sh.

in reply to: ↑ 1   Changed 8 months ago by 0booo5b02@…

Replying to jmr@macports.org:

Some suggested changes to the Portfile: * You can obfuscate your email address to help thwart spam harvesters, like so: sneakemail.com:0booo5b02. The output from 'port info' will still be the same.

The email is already obfuscated (hence the sneakemail.com domain) but thanks. Besides that, it is displayed in plaintext in this very page.

* You should use ${prefix} instead of hardcoding /opt/local in --with-dvdread-libs=/opt/local. You also don't need to specify --prefix=${prefix} in configure.args, since it is automatically set in configure.pre_args.

I missed that one. Done

* Since you're specifying the path to MacPorts' libdvdread, you don't want the dependency satisfied by something installed somewhere else, so you should use port:libdvdread rather than lib:libdvdread:libdvdread.

I suspected this but wasn't sure so I decided to keep it as in the port in which I based this one. Done.

* The cd command is deprecated, so don't use it. You should also generally use the built-in Tcl command file link -symbolic rather than calling ln via the system command. However, these points are actually irrelevant in this case, since you don't need the pre-configure phase. You can just use configure.cmd configure.sh.

I missed this `configure.cmd in the documentation but configure.sh doesn't work, it needs to be set to ./configure.sh Done

configure.cmd is only mentioned in relation to configure.args, configure.pre_args, configure.post_args. Maybe having its own entry in the documentation would be a good idea.

New Portfile attached

This was my first port for this system so thank you for your suggestions and help.

Changed 8 months ago by 0booo5b02@…

  Changed 8 months ago by jmr@…

  • owner changed from macports-tickets@… to jmr@…
  • status changed from new to assigned

  Changed 8 months ago by jmr@…

  • status changed from assigned to closed
  • resolution set to fixed

Linted and committed in r36194. Thanks for contributing!

  Changed 8 months ago by 0booo5b02@…

Thanks for correcting and committing my new port in less than 8 hours!

In gentoo it usually takes in the order of weeks sometimes months to add the simplest ebuild. Once I even waited for 14 months for a much simpler ebuild to be added to the repository.

Note: See TracTickets for help on using tickets.