Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2013 12:56:31 GMT
From:      nemysis <nemysis@gmx.ch>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179401: [PATCH] /usr/ports/Mk/Uses/pure.mk: New Uses pure
Message-ID:  <201306071256.r57CuV5s095399@oldred.freebsd.org>
Resent-Message-ID: <201306071300.r57D04Ae022759@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179401
>Category:       ports
>Synopsis:       [PATCH] /usr/ports/Mk/Uses/pure.mk: New Uses pure
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 07 13:00:03 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
>Environment:
FreeBSD FreeBSD_Ports 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013
>Description:
- All tests have succeeded

I have updated, checked and fixed all ports associated with pure.mk.


/usr/ports/lang/pure/bsd.pure.mk will be obsolete, when all Pure Ports are committed.


Please edit http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/appendices.html#uses-values and do necessary changes as under



Feature	Arguments	Description

pure	none,ffi	Implies the port uses lang/pure in one way or another, but largely is used for building pure related ports.
			ffi implies use devel/pure-ffi and devel/libffi.



I will be submitting my work later today or latest by tomorrow.
>How-To-Repeat:
Please take a look at redports logs with regards to pure and do check a PR regarding pure.mk.
>Fix:
Please add attachment as /usr/ports/Mk/Uses/pure.mk into official FreeBSD Ports Tree.

Patch attached with submission follows:

# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD: head/lang/pure/bsd.pure.mk 300896 2012-07-14 13:54:48Z beat $
#
# Provide support for Pure Programming Language based projects
#
# MAINTAINER= lichray@gmail.com
#
# Feature:		pure
# Usage:		USES=pure or USES=pure:ARGS
# Valid ARGS:		ffi
# ARGS description:
# ffi			makes the port depends on pure-ffi at runtime
#

.if !defined(_INCLUDE_USES_PURE_MK)
_INCLUDE_USES_PURE_MK=	yes

_valid_ARGS=		ffi
_pure_ARGS=		${pure_ARGS:C/\:/ /g}

# Sanity check
.if defined(pure_ARGS)
.  for arg in ${_pure_ARGS}
.    if empty(_valid_ARGS:M${arg})
IGNORE= Incorrect 'USES+= pure:${pure_ARGS}' usage: argument [${arg}] is not recognized
.    endif
.  endfor
.endif

LIB_DEPENDS+=	pure.8:${PORTSDIR}/lang/pure
USE_GMAKE=	yes

.if ${_pure_ARGS:Mffi}
RUN_DEPENDS+=	${LOCALBASE}/lib/pure/ffi.pure:${PORTSDIR}/devel/pure-ffi
.endif

MAKE_ARGS+=	prefix=${PREFIX} mandir=${PREFIX}/man \
		CC=${CC} CFLAGS="${CFLAGS}" \
		CXX=${CXX} CXXFLAGS="${CXXFLAGS}" \
		CPPFLAGS+=-I${LOCALBASE}/include \
		LDFLAGS+=-L${LOCALBASE}/lib

.endif #!defined(_INCLUDE_USES_PURE_MK)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306071256.r57CuV5s095399>