Bug 187332 - [PATCH] misc/sloccount: support staging
Summary: [PATCH] misc/sloccount: support staging
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-06 22:50 UTC by Dmitry Marakasov
Modified: 2014-03-29 14:10 UTC (History)
1 user (show)

See Also:


Attachments
sloccount-2.26.patch (2.15 KB, patch)
2014-03-06 22:50 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov 2014-03-06 22:50:02 UTC
- Support staging

Port maintainer (freaky@aagh.net) is cc'd.

Generated with FreeBSD Port Tools 1.00.2014.02.18 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-06 22:50:13 UTC
Maintainer of misc/sloccount,

Please note that PR ports/187332 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/187332

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-06 22:50:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-03-29 14:04:04 UTC
Author: amdmi3
Date: Sat Mar 29 14:04:00 2014
New Revision: 349513
URL: http://svnweb.freebsd.org/changeset/ports/349513
QAT: https://qat.redports.org/buildarchive/r349513/

Log:
  - Support staging
  
  PR:		187332
  Submitted by:	amdmi3
  Approved by:	maintainer timeout, portmgr (blanket)

Modified:
  head/misc/sloccount/Makefile
  head/misc/sloccount/files/patch-makefile
  head/misc/sloccount/pkg-plist

Modified: head/misc/sloccount/Makefile
==============================================================================
--- head/misc/sloccount/Makefile	Sat Mar 29 14:02:29 2014	(r349512)
+++ head/misc/sloccount/Makefile	Sat Mar 29 14:04:00 2014	(r349513)
@@ -16,19 +16,13 @@ INSTALL_TARGET=	install_programs install
 
 PORTDOCS=	ChangeLog README TODO sloccount.html
 
-MAN1=		sloccount.1
-MANCOMPRESSED=	yes
-
-NO_STAGE=	yes
 post-install:
 .for file in lexcount1 c_count java_count php_count
-	@${STRIP_CMD} ${PREFIX}/bin/${file}
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
 .endfor
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for docs in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/misc/sloccount/files/patch-makefile
==============================================================================
--- head/misc/sloccount/files/patch-makefile	Sat Mar 29 14:02:29 2014	(r349512)
+++ head/misc/sloccount/files/patch-makefile	Sat Mar 29 14:04:00 2014	(r349513)
@@ -1,5 +1,5 @@
---- makefile.orig	2009-08-29 15:28:59.000000000 -0300
-+++ makefile	2009-08-29 15:30:34.000000000 -0300
+--- makefile.orig	2004-08-01 22:52:06.000000000 +0400
++++ makefile	2014-03-06 18:50:45.513966851 +0400
 @@ -28,7 +28,6 @@
  # Set this for where to store the man pages and executables.
  # If you want to store this as part of an official distribution,
@@ -16,12 +16,14 @@
  
  # Set this to the name of your "install" program.  On some systems,
  # "install -C" would be useful (so unchanged files won't be modified),
-@@ -70,7 +68,7 @@
+@@ -69,8 +67,8 @@
+ RPM_VERSION=1
  ARCH=i386
  VERSIONEDNAME=$(NAME)-$(VERSION)
- INSTALL_DIR=$(PREFIX)/bin
+-INSTALL_DIR=$(PREFIX)/bin
 -MAN_DIR=$(PREFIX)/share/man
-+MAN_DIR=$(PREFIX)/man
++INSTALL_DIR=${DESTDIR}$(PREFIX)/bin
++MAN_DIR=${DESTDIR}$(PREFIX)/man
  MAN_DIR_MAN1=$(MAN_DIR)/man1
  DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION)
  POSTED_DIR=/home/dwheeler/dwheeler.com/sloccount

Modified: head/misc/sloccount/pkg-plist
==============================================================================
--- head/misc/sloccount/pkg-plist	Sat Mar 29 14:02:29 2014	(r349512)
+++ head/misc/sloccount/pkg-plist	Sat Mar 29 14:04:00 2014	(r349513)
@@ -38,3 +38,4 @@ bin/show_filecount
 bin/sloccount
 bin/sql_count
 bin/tcl_count
+man/man1/sloccount.1.gz
_______________________________________________
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 4 Dmitry Marakasov freebsd_committer freebsd_triage 2014-03-29 14:09:04 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!