Opened 20 years ago

Closed 20 years ago

#2405 closed defect (fixed)

NEW: par-1.52

Reported by: mcg30761@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

Par-1.52

the portfile can be found here: INLINE

Description: paragraph reflow for email

Comments: This is my very first attempt at a darwinport. Any and all comments welcome on my Portsfile.

================INLINE CONTENT================ # $Id: $

# Based on: http://www.openbsd.org/cgi-bin/cvsweb/ports/textproc/par/Makefile

PortSystem 1.0

name par version 1.52 categories textproc platforms darwin maintainers wbb4@… description paragraph reflow for email long_description ${description}

homepage http://www.nicemice.net/${name}/ master_sites ${homepage} worksrcdir [string totitle $name][string map {. {}} $version] distfiles ${worksrcdir}.tar.gz checksums md5 4ccacd824171ba2c2f14fb8aba78b9bf

configure {

system "cp ${worksrcpath}/protoMakefile ${worksrcpath}/Makefile" reinplace "s|\$(CC) \$<|\$(CC) \$(CFLAGS) \$<|" ${worksrcpath}/Makefile

}

build.target ""

destroot {

xinstall "${worksrcpath}/${name}" "${destroot}${prefix}/bin/" xinstall "${worksrcpath}/${name}.1" "${destroot}${prefix}/share/man/man1/"

} --

Change History (3)

comment:1 Changed 20 years ago by toby@…

Looks fairly good. Couple of comments:

1) Why is wbb4@ the maintainer?

2) You can replace the worksrcdir and distfiles lines with 'distname [string totitle $name][string map {. {}} $version]'

3) Use 'file copy' instead of system "cp ..."

comment:2 Changed 20 years ago by mcg30761@…

(In reply to comment #1)

Looks fairly good. Couple of comments:

1) Why is wbb4@ the maintainer?

Because this was my first attempt. I didn't know if I could list myself as a maintainer since I was not an "official" contributor. "wbb4@" was listed as the maintainer for the category ("textpoc"), so that person was my best guess for an "official" person.

2) You can replace the worksrcdir and distfiles lines with 'distname [string

totitle $name][string map {. {}}

$version]'

Oh, ok.

3) Use 'file copy' instead of system "cp ..."

system "cp ..." I swiped from other Portfiles I looked at for examples, but 'file copy ...' is definitely a better way.

Thank you for all the helpful input!

comment:3 Changed 20 years ago by toby@…

Resolution: fixed
Status: newclosed

Committed with minor edits. Thanks, and sorry for the delay.

Note: See TracTickets for help on using tickets.