Bug 179401 - [PATCH] /usr/ports/Mk/Uses/pure.mk: New Uses pure
Summary: [PATCH] /usr/ports/Mk/Uses/pure.mk: New Uses pure
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 14:00 UTC by nemysis
Modified: 2013-10-18 23:20 UTC (History)
0 users

See Also:


Attachments
file.txt (1.07 KB, text/plain)
2013-06-07 14:00 UTC, nemysis
no flags Details
pure.mk.txt (1.19 KB, text/plain)
2013-07-18 20:15 UTC, nemysis
no flags Details
pure.mk (1.08 KB, text/plain; charset=us-ascii)
2013-10-16 16:43 UTC, Rusmir Dusko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-07 14:00:03 UTC
- 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.

Fix: Please add attachment as /usr/ports/Mk/Uses/pure.mk into official FreeBSD Ports Tree.

Patch attached with submission follows:
How-To-Repeat: Please take a look at redports logs with regards to pure and do check a PR regarding pure.mk.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-07 14:00:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-07 14:00:18 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-07 14:00:18 UTC
Maintainer of Mk/Uses,

Please note that PR ports/179401 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/179401

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 4 lichray 2013-06-07 16:27:58 UTC
Any reason of duplicating installing examples?

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/
Comment 5 zhihao.yuan 2013-06-07 17:05:37 UTC
1. Change the creator to you;
2. I hope to see more automations.

-- 
Zhihao Yuan <zhihao.yuan@rackspace.com>
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/
Comment 6 nemysis 2013-07-18 20:15:03 UTC
> 1. Change the creator to you;
Comment 7 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-15 22:37:00 UTC
Responsible Changed
From-To: beech->nemysis

I'll take it.
Comment 8 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-16 16:43:05 UTC
- New Uses pure.mk
- Provide support for Pure Programming Language based projects
Comment 9 lichray 2013-10-16 16:56:58 UTC
On Wed, Oct 16, 2013 at 11:43 AM, Rusmir Dusko <nemysis@freebsd.org> wrote:
> - New Uses pure.mk
> - Provide support for Pure Programming Language based projects

Cool!  Currently pure-ffi only is enough.

-- 
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/
Comment 10 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-17 07:11:56 UTC
State Changed
From-To: feedback->open

Maintainer has approved.
Comment 11 dfilter service freebsd_committer freebsd_triage 2013-10-18 23:12:49 UTC
Author: nemysis
Date: Fri Oct 18 22:12:37 2013
New Revision: 330779
URL: http://svnweb.freebsd.org/changeset/ports/330779

Log:
  - New Uses pure.mk
  - Provide support for Pure Programming Language based projects
  
  PR:		ports/179401
  Submitted by:	nemysis (self)
  Approved by:	pawel (mentor), bapt (portmgr)

Added:
  head/Mk/Uses/pure.mk   (contents, props changed)

Added: head/Mk/Uses/pure.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/Mk/Uses/pure.mk	Fri Oct 18 22:12:37 2013	(r330779)
@@ -0,0 +1,39 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+#
+# Provide support for Pure Programming Language based projects
+#
+# MAINTAINER= nemysis@FreeBSD.org
+#
+# 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) && ${_pure_ARGS} != ffi
+IGNORE=Incorrect 'USES+= pure:${pure_ARGS}' usage: argument [${pure_ARGS}] is not recognized
+.endif
+
+LIB_DEPENDS+=	libpure.so:${PORTSDIR}/lang/pure
+.include "${PORTSDIR}/Mk/Uses/gmake.mk"
+
+.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)
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 12 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-18 23:17:21 UTC
State Changed
From-To: open->closed

Committed. Thanks!