Opened 15 years ago

Closed 14 years ago

#22569 closed submission (duplicate)

Port for Go language compiler and runtime

Reported by: pbhogan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: go Cc:
Port:

Description

This is a port for the new Go language compiler (http://golang.org)

Attachments (1)

Portfile (2.3 KB) - added by pbhogan@… 15 years ago.
Updated Portfile

Download all attachments as: .zip

Change History (10)

comment:1 Changed 15 years ago by blb@…

See also #22476 and #22506.

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

I like this one ;)

comment:3 Changed 15 years ago by roederja

Why does it violate mtree?

comment:4 in reply to:  3 Changed 15 years ago by pbhogan@…

Replying to jann@…:

Why does it violate mtree?

Because it installs the runtime libraries to $prefix/$name (/opt/local/go) which is outside the standard tree, but seems like a good place to put it.

comment:5 Changed 15 years ago by danielluke (Daniel J. Luke)

Seems like they would belong in $prefix/lib or $prefix/lib/$name

comment:6 in reply to:  5 Changed 15 years ago by pbhogan@…

Replying to dluke@…:

Seems like they would belong in $prefix/lib or $prefix/lib/$name

You might be right about $prefix/lib/$name. There's also docs, go code, tests and other stuff in there. It didn't quite seem lib-ish, but it would fit there better than other places probably. I sort of followed Apache's lead with $prefix/$name, but it's easy enough to change.

There are one or two other tweaks I'd like to do to clean it up a little when I find the time.

Changed 15 years ago by pbhogan@…

Attachment: Portfile added

Updated Portfile

comment:7 Changed 15 years ago by pbhogan@…

Fixed the Portfile to respect mtree (installs go/pkg to $prefix/lib/$name/pkg and go/doc to $prefix/doc/$name) and is also more destroot friendly and will uninstall cleanly.

To give credit where it's due: I borrowed from the other two ports (#22476 and #22506) in dealing with the "~place-holder~" file more cleanly and destrooting properly.

comment:8 in reply to:  5 Changed 15 years ago by pbhogan@…

Replying to dluke@…:

Seems like they would belong in $prefix/lib or $prefix/lib/$name

This is now fixed.

comment:9 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.