Skip to content
Permalink
Browse files

Aesthetic changes suggested by Felix.

Fixed the port so it will actually install properly.
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4523 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
pguyot committed Jan 8, 2004
1 parent 5cd4269 commit 8e0235dad4476f2e3082fd0cab466219582c4bc9
Showing with 30 additions and 5 deletions.
  1. +11 −5 net/unison/Portfile
  2. +19 −0 net/unison/files/patch-Makefile
@@ -1,11 +1,12 @@
# $Id: Portfile,v 1.1 2004/01/07 23:16:24 pguyot Exp $
# $Id: Portfile,v 1.2 2004/01/08 06:26:19 pguyot Exp $

PortSystem 1.0
name unison
version 2.9.1
revision 1
distname src
categories net
maintainers ...
maintainers julien.touche@touche.fr.st
description Unison File Synchronizer
long_description Unison is a file-synchronization tool for Unix and \
Windows. It allows two replicas of a collection of \
@@ -14,19 +15,24 @@ long_description Unison is a file-synchronization tool for Unix and \
separately, and then brought up to date by propagating \
the changes in each replica to the other.
homepage http://www.cis.upenn.edu/~bcpierce/unison/
master_sites http://www.cis.upenn.edu/~bcpierce/unison/download/stable/latest/
master_sites ${homepage}download/stable/latest/
platforms darwin openbsd
checksums src.tar.gz md5 d8084fa87c13671de21ec1b701a4606c
checksums md5 d8084fa87c13671de21ec1b701a4606c
patchfiles patch-Makefile

set worksrcdir ${name}-${version}

configure {}

destroot.env PREFIX=${prefix}

build.env UISTYLE=text
depends_lib bin:camlp4:ocaml bin:lablgtk:lablgtk

# This variant follows the INSTALL file. However, it doesn't make much sense
# you'll get the x11 GUI if DISPLAY is set even if you didn't select this
# variant.
variant x11 {
build.env-delete UISTYLE=text
build.env-append UISTYLE=gtk
depends_lib-append lib:libgtk+:gtk+
}
@@ -0,0 +1,19 @@
--- Makefile Thu Jan 8 07:06:55 2004
+++ Makefile Thu Jan 8 07:07:28 2004
@@ -62,14 +62,12 @@
######################################################################
# Installation

-INSTALLDIR = $(HOME)/bin/
+INSTALLDIR = $(DESTDIR)$(PREFIX)/bin/

+.PHONY: install
install: $(NAME)$(EXEC_EXT)
- -mv $(INSTALLDIR)/$(NAME)$(EXEC_EXT) /tmp/$(NAME)-$(shell echo $$$$)
cp $(NAME)$(EXEC_EXT) $(INSTALLDIR)
cp $(NAME)$(EXEC_EXT) $(INSTALLDIR)$(NAME)-$(VERSION)$(EXEC_EXT)
- @# If we're running at Penn, install a public version too
- if [ -d /plclub/bin ]; then cp $(NAME)$(EXEC_EXT) /plclub/bin/$(NAME)-$(VERSION)$(EXEC_EXT); fi


######################################################################

0 comments on commit 8e0235d

Please sign in to comment.
You can’t perform that action at this time.