Index: head/biology/bedtools/Makefile =================================================================== --- head/biology/bedtools/Makefile (revision 467782) +++ head/biology/bedtools/Makefile (revision 467783) @@ -1,29 +1,30 @@ -# Created by: Scott Cheloha # $FreeBSD$ PORTNAME= bedtools -PORTVERSION= 2.25.0 DISTVERSIONPREFIX= v +DISTVERSION= 2.27.1 CATEGORIES= biology -MASTER_SITES= GITHUB -MAINTAINER= scottcheloha@gmail.com -COMMENT= Toolset for genome arithmetic +MAINTAINER= jwb@FreeBSD.org +COMMENT= Toolset for genome set arithmetic such as intersect, union LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE +USES= gmake python USE_GITHUB= yes GH_ACCOUNT= arq5x GH_PROJECT= bedtools2 -USES= gmake python -#NO_ARCH= yes +pre-build: + @${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|g' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|@\$$(CXX)|$$(CXX)|g' \ + ${WRKSRC}/*/Makefile \ + ${WRKSRC}/*/*/Makefile \ + ${WRKSRC}/*/*/*/Makefile \ + ${WRKSRC}/*/*/*/*/Makefile -MAKE_JOBS_UNSAFE= yes - -post-patch: - @${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|g' \ - ${WRKSRC}/Makefile +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bedtools .include Index: head/biology/bedtools/distinfo =================================================================== --- head/biology/bedtools/distinfo (revision 467782) +++ head/biology/bedtools/distinfo (revision 467783) @@ -1,2 +1,3 @@ -SHA256 (arq5x-bedtools2-v2.25.0_GH0.tar.gz) = 159122afb9978015f7ec85d7b17739b01415a5738086b20a48147eeefcf08cfb -SIZE (arq5x-bedtools2-v2.25.0_GH0.tar.gz) = 19586049 +TIMESTAMP = 1519746174 +SHA256 (arq5x-bedtools2-v2.27.1_GH0.tar.gz) = edcac089d84e63a51f85c3c189469daa7d42180272130b046856faad3cf79112 +SIZE (arq5x-bedtools2-v2.27.1_GH0.tar.gz) = 20003119 Index: head/biology/bedtools/files/patch-src_utils_FileRecordTools_Records_StrandQueue.h =================================================================== --- head/biology/bedtools/files/patch-src_utils_FileRecordTools_Records_StrandQueue.h (revision 467782) +++ head/biology/bedtools/files/patch-src_utils_FileRecordTools_Records_StrandQueue.h (nonexistent) @@ -1,11 +0,0 @@ ---- src/utils/FileRecordTools/Records/StrandQueue.h.orig 2015-09-03 04:36:18 UTC -+++ src/utils/FileRecordTools/Records/StrandQueue.h -@@ -30,7 +30,7 @@ public: - - private: - // static RecordPtrSortFunctor _recSortFunctor; -- typedef priority_queue, RecordPtrSortDescFunctor > queueType; -+ typedef priority_queue, RecordPtrSortDescFunctor > queueType; - vector _queues; - static const int NUM_QUEUES = 3; - Property changes on: head/biology/bedtools/files/patch-src_utils_FileRecordTools_Records_StrandQueue.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/biology/bedtools/files/patch-Makefile =================================================================== --- head/biology/bedtools/files/patch-Makefile (revision 467782) +++ head/biology/bedtools/files/patch-Makefile (revision 467783) @@ -1,56 +1,46 @@ ---- Makefile.orig 2015-11-14 00:48:48 UTC +--- Makefile.orig 2017-12-14 17:15:02 UTC +++ Makefile @@ -4,7 +4,7 @@ # (c) 2009 Aaron Quinlan # ========================== -SHELL := /bin/bash -e +SHELL := /bin/sh -e VERSION_FILE=./src/utils/version/version_git.h RELEASED_VERSION_FILE=./src/utils/version/version_release.txt @@ -16,11 +16,11 @@ export OBJ_DIR = obj export BIN_DIR = bin export SRC_DIR = src export UTIL_DIR = src/utils -export CXX = g++ -+export CXX = c++ - #ifeq ($(DEBUG),1) - #export CXXFLAGS = -Wall -O0 -g -fno-inline -fkeep-inline-functions -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG -D_DEBUG - #else ++export CXX ?= g++ + ifeq ($(DEBUG),1) +-export CXXFLAGS = -Wall -Wextra -DDEBUG -D_DEBUG -g -O0 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) ++export CXXFLAGS += -Wall -Wextra -DDEBUG -D_DEBUG -g -O0 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) + else -export CXXFLAGS = -Wall -O2 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) -+export CXXFLAGS += -Wall -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) - #endif - export LIBS = -lz - export BT_ROOT = src/utils/BamTools/ -@@ -129,20 +129,17 @@ INCLUDES = -I$(SRC_DIR)/utils/bedFile \ - -I$(SRC_DIR)/utils/GenomeFile \ - -I$(SRC_DIR)/utils/RecordOutputMgr \ - -I$(SRC_DIR)/utils/ToolBase \ -- -I$(SRC_DIR)/utils/driver \ -- -+ -I$(SRC_DIR)/utils/driver ++export CXXFLAGS += -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) + endif + # If the user has specified to do so, tell the compile to use rand() (instead of mt19937). +@@ -143,8 +143,8 @@ INCLUDES = -I$(SRC_DIR)/utils/bedFile \ + all: print_banner $(OBJ_DIR) $(BIN_DIR) autoversion $(UTIL_SUBDIRS) $(SUBDIRS) @echo "- Building main bedtools binary." - @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c src/bedtools.cpp -o obj/bedtools.o $(INCLUDES) - @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $(BIN_DIR)/bedtools $(BUILT_OBJECTS) -L$(UTIL_DIR)/BamTools/lib/ -lbamtools $(LIBS) $(LDFLAGS) $(INCLUDES) +- @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c src/bedtools.cpp -o obj/bedtools.o $(INCLUDES) +- @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $(BIN_DIR)/bedtools $(BUILT_OBJECTS) -L$(UTIL_DIR)/BamTools/lib/ -lbamtools $(LIBS) $(LDFLAGS) $(INCLUDES) ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c src/bedtools.cpp -o obj/bedtools.o $(INCLUDES) ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $(BIN_DIR)/bedtools $(BUILT_OBJECTS) -L$(UTIL_DIR)/BamTools/lib/ -lbamtools $(LIBS) $(LDFLAGS) $(INCLUDES) @echo "done." -- - @echo "- Creating executables for old CLI." - @python scripts/makeBashScripts.py - @chmod +x bin/* - @echo "done." -- - .PHONY: all - -@@ -183,7 +180,7 @@ clean: + @echo "- Creating executables for old CLI." +@@ -193,7 +193,7 @@ clean: .PHONY: clean test: all - @cd test; bash test.sh + @cd test; $(SHELL) test.sh .PHONY: test Index: head/biology/bedtools/pkg-descr =================================================================== --- head/biology/bedtools/pkg-descr (revision 467782) +++ head/biology/bedtools/pkg-descr (revision 467783) @@ -1,12 +1,12 @@ The bedtools utilities are a suite of tools for performing a wide range of genomics analysis tasks. The most widely-used of these tools enable genome -arithmetic, i.e., set theory on the genome. For example, with bedtools one -can intersect, merge, count, complement, and shuffle genomic intervals from +arithmetic, i.e., set theory on the genome. For example, with bedtools one can +intersect, merge, count, complement, and shuffle genomic intervals from multiple files in common genomic formats such as BAM, BED, GFF/GTF, and VCF. Although each individual utility is designed to do a relatively simple task, e.g., intersect two interval files, more sophisticated analyses can be conducted by stringing together multiple bedtools operations on the command line or in shell scripts. WWW: http://bedtools.readthedocs.org/ Index: head/biology/bedtools/pkg-plist =================================================================== --- head/biology/bedtools/pkg-plist (revision 467782) +++ head/biology/bedtools/pkg-plist (revision 467783) @@ -1,37 +1,38 @@ bin/annotateBed bin/bamToBed bin/bamToFastq bin/bed12ToBed6 bin/bedToBam bin/bedToIgv bin/bedpeToBam bin/bedtools bin/closestBed bin/clusterBed bin/complementBed bin/coverageBed bin/expandCols bin/fastaFromBed bin/flankBed bin/genomeCoverageBed bin/getOverlap bin/groupBy bin/intersectBed bin/linksBed bin/mapBed bin/maskFastaFromBed bin/mergeBed bin/multiBamCov bin/multiIntersectBed bin/nucBed bin/pairToBed bin/pairToPair bin/randomBed +bin/shiftBed bin/shuffleBed bin/slopBed bin/sortBed bin/subtractBed bin/tagBam bin/unionBedGraphs bin/windowBed bin/windowMaker