Bug 187598 - [PATCH] devel/arduino-irremote: Add stage support
Summary: [PATCH] devel/arduino-irremote: Add stage support
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: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-15 00:40 UTC by leres
Modified: 2014-03-15 16:30 UTC (History)
1 user (show)

See Also:


Attachments
patch.txt (1.33 KB, text/plain)
2014-03-15 00:40 UTC, leres
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description leres 2014-03-15 00:40:00 UTC
	Add stage support.

Fix: Please see the attached patch.
Comment 1 Pawel Pekala freebsd_committer 2014-03-15 15:11:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter freebsd_committer 2014-03-15 16:29:33 UTC
Author: pawel
Date: Sat Mar 15 16:29:30 2014
New Revision: 348346
URL: http://svnweb.freebsd.org/changeset/ports/348346
QAT: https://qat.redports.org/buildarchive/r348346/

Log:
  - Add stage support [1]
  - Use PORTEXAMPLES for example files
  
  PR:		ports/187598 [1]
  Submitted by:	maintainer

Modified:
  head/devel/arduino-irremote/Makefile

Modified: head/devel/arduino-irremote/Makefile
==============================================================================
--- head/devel/arduino-irremote/Makefile	Sat Mar 15 16:29:16 2014	(r348345)
+++ head/devel/arduino-irremote/Makefile	Sat Mar 15 16:29:30 2014	(r348346)
@@ -25,38 +25,15 @@ PLIST_FILES=	arduino/libraries/IRremote/
 		arduino/libraries/IRremote/IRremoteInt.h \
 		arduino/libraries/IRremote/keywords.txt
 PLIST_DIRS=	arduino/libraries/IRremote
-
-NO_STAGE=	yes
+PORTEXAMPLES=	*
 
 OPTIONS_DEFINE=	EXAMPLES
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MEXAMPLES}
-PLIST_FILES+=	${EXAMPLESDIR_REL}/IRrecord/IRrecord.pde \
-		${EXAMPLESDIR_REL}/IRrecvDemo/IRrecvDemo.pde \
-		${EXAMPLESDIR_REL}/IRrecvDump/IRrecvDump.pde \
-		${EXAMPLESDIR_REL}/IRrelay/IRrelay.pde \
-		${EXAMPLESDIR_REL}/IRsendDemo/IRsendDemo.pde \
-		${EXAMPLESDIR_REL}/IRtest/IRtest.pde
-PLIST_DIRS+=	${EXAMPLESDIR_REL}/IRrecord \
-		${EXAMPLESDIR_REL}/IRrecvDemo \
-		${EXAMPLESDIR_REL}/IRrecvDump \
-		${EXAMPLESDIR_REL}/IRrelay \
-		${EXAMPLESDIR_REL}/IRsendDemo \
-		${EXAMPLESDIR_REL}/IRtest \
-		${EXAMPLESDIR_REL}
-.endif
-
 do-install:
-	${MKDIR} ${PREFIX}/arduino/libraries/IRremote
-	${INSTALL_DATA} ${WRKSRC}/IRremote.cpp ${PREFIX}/arduino/libraries/IRremote
-	${INSTALL_DATA} ${WRKSRC}/IRremote.h ${PREFIX}/arduino/libraries/IRremote
-	${INSTALL_DATA} ${WRKSRC}/IRremoteInt.h ${PREFIX}/arduino/libraries/IRremote
-	${INSTALL_DATA} ${WRKSRC}/keywords.txt ${PREFIX}/arduino/libraries/IRremote
-.if ${PORT_OPTIONS:MEXAMPLES}
-	${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote
+	(cd ${WRKSRC} && ${INSTALL_DATA} IRremote.cpp IRremote.h IRremoteInt.h \
+		keywords.txt ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote)
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.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 3 Pawel Pekala freebsd_committer 2014-03-15 16:29:44 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!