[112062] trunk/dports/sysutils
ryandesign at macports.org
ryandesign at macports.org
Thu Oct 10 15:17:24 PDT 2013
Revision: 112062
https://trac.macports.org/changeset/112062
Author: ryandesign at macports.org
Date: 2013-10-10 15:17:24 -0700 (Thu, 10 Oct 2013)
Log Message:
-----------
libfaketime: new port, version 0.9.5rc2 (#40662)
Added Paths:
-----------
trunk/dports/sysutils/libfaketime/
trunk/dports/sysutils/libfaketime/Portfile
trunk/dports/sysutils/libfaketime/files/
trunk/dports/sysutils/libfaketime/files/patch-Makefile.OSX.diff
trunk/dports/sysutils/libfaketime/files/patch-man-Makefile.OSX.diff
trunk/dports/sysutils/libfaketime/files/patch-src-Makefile.OSX.diff
Added: trunk/dports/sysutils/libfaketime/Portfile
===================================================================
--- trunk/dports/sysutils/libfaketime/Portfile (rev 0)
+++ trunk/dports/sysutils/libfaketime/Portfile 2013-10-10 22:17:24 UTC (rev 112062)
@@ -0,0 +1,45 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+
+github.setup wolfcw libfaketime be2b7c0a0cae3f8b75928891285a33b5e34f97a2
+
+checksums rmd160 25d0d06c0693df93f5cceb32fb67f10c93c83258 \
+ sha256 ed4b3a11a4f67a777103bf7a192517fa7ac70cbc7df54b6383f572310423031d
+
+name libfaketime
+version 0.9.5rc2
+categories sysutils
+platforms darwin
+maintainers code-wizards.com:wolf
+license GPL-2
+
+description libfaketime modifies the system time for a single application
+
+long_description libfaketime intercepts various system calls that applications use to \
+ retrieve the current date and time. It can then report user-specified \
+ faked dates and times to these applications. This allows us to modify \
+ the system time an application sees without having to change the time \
+ system-wide. The faketime wrapper can be used from command line. \
+ Check the documentation on how to integrate into installed applications.
+
+patchfiles patch-Makefile.OSX.diff \
+ patch-man-Makefile.OSX.diff \
+ patch-src-Makefile.OSX.diff
+
+use_configure no
+
+variant universal {}
+
+compiler.blacklist *cc* *dragonegg*
+
+build.args -f Makefile.OSX
+build.env CC="${configure.cc}" \
+ CFLAGS="[get_canonical_archflags cc]" \
+ LDFLAGS="[get_canonical_archflags ld]" \
+ PREFIX=${prefix}
+
+destroot.args -f Makefile.OSX
+destroot.env PREFIX=${prefix}
Property changes on: trunk/dports/sysutils/libfaketime/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/sysutils/libfaketime/files/patch-Makefile.OSX.diff
===================================================================
--- trunk/dports/sysutils/libfaketime/files/patch-Makefile.OSX.diff (rev 0)
+++ trunk/dports/sysutils/libfaketime/files/patch-Makefile.OSX.diff 2013-10-10 22:17:24 UTC (rev 112062)
@@ -0,0 +1,10 @@
+--- Makefile.OSX.orig 2013-10-04 04:48:54.000000000 -0500
++++ Makefile.OSX 2013-10-10 17:00:21.000000000 -0500
+@@ -1,6 +1,6 @@
+ INSTALL ?= install
+
+-PREFIX ?= /opt/local
++PREFIX ?= /usr/local
+
+ all:
+ $(MAKE) -f Makefile.OSX -C src all
Added: trunk/dports/sysutils/libfaketime/files/patch-man-Makefile.OSX.diff
===================================================================
--- trunk/dports/sysutils/libfaketime/files/patch-man-Makefile.OSX.diff (rev 0)
+++ trunk/dports/sysutils/libfaketime/files/patch-man-Makefile.OSX.diff 2013-10-10 22:17:24 UTC (rev 112062)
@@ -0,0 +1,10 @@
+--- man/Makefile.OSX.orig 2013-10-04 04:48:54.000000000 -0500
++++ man/Makefile.OSX 2013-10-10 16:59:41.000000000 -0500
+@@ -1,6 +1,6 @@
+ INSTALL ?= install
+
+-PREFIX ?= /opt/local
++PREFIX ?= /usr/local
+
+ all:
+
Added: trunk/dports/sysutils/libfaketime/files/patch-src-Makefile.OSX.diff
===================================================================
--- trunk/dports/sysutils/libfaketime/files/patch-src-Makefile.OSX.diff (rev 0)
+++ trunk/dports/sysutils/libfaketime/files/patch-src-Makefile.OSX.diff 2013-10-10 22:17:24 UTC (rev 112062)
@@ -0,0 +1,48 @@
+--- src/Makefile.OSX.orig 2013-10-04 04:48:54.000000000 -0500
++++ src/Makefile.OSX 2013-10-10 13:53:41.000000000 -0500
+@@ -35,33 +35,30 @@
+ # which is used to activate the start-at times when specified. This also initializes
+ # the dynamic disabling of the FAKE_STAT calls.
+ #
++# By default, libfaketime will be compiled for your system's default architecture.
++# To build for a different architecture, add -arch flags to CFLAGS and LDFLAGS.
++#
+
+ # default to clang to support thread local variables
+ CC ?= clang
+-INSTALL = install
++INSTALL ?= install
+
+-PREFIX ?= /opt/local
++PREFIX ?= /usr/local
+
+-# If you get an error about an unsupported architecture, remove it. Some
+-# versions of XCode support different subsets of architectures, depending on
+-# age.
+-# 10.5
+-#CFLAGS = -dynamiclib -arch i386 -arch ppc
+-# 10.6
+-CFLAGS = -dynamiclib -DFAKE_SLEEP -arch i386 -arch x86_64 -DPREFIX='"'$(PREFIX)'"'
+-LIB_SRC = libfaketime.c
++CFLAGS += -DFAKE_SLEEP -DPREFIX='"'${PREFIX}'"'
++LIB_LDFLAGS += -dynamiclib
+
+ SONAME = 1
+-LIBS = libfaketime.dylib.${SONAME}
++LIBS = libfaketime.${SONAME}.dylib
+ BINS = faketime
+
+ all: ${LIBS} ${BINS}
+
+-libfaketime.dylib.${SONAME}: ${LIB_SRC}
+- ${CC} -o $@ ${CFLAGS} $<
++libfaketime.${SONAME}.dylib: libfaketime.c
++ ${CC} -o $@ ${CFLAGS} ${LDFLAGS} ${LIB_LDFLAGS} -install_name ${PREFIX}/lib/faketime/$@ $<
+
+-faketime:
+- ${CC} -o faketime faketime.c -DPREFIX='"'$(PREFIX)'"'
++faketime: faketime.c
++ ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $<
+
+ clean:
+ @rm -f ${OBJ} ${LIBS} ${BINS}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131010/e9740483/attachment.html>
More information about the macports-changes
mailing list