SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
35
devel/sharness/patches/patch-Makefile
Normal file
35
devel/sharness/patches/patch-Makefile
Normal file
|
@ -0,0 +1,35 @@
|
|||
Don't install into ${HOME}, but rather where many projects assume
|
||||
sharness to be. Using INSTALL_DIR confuses the build infrastructure.
|
||||
|
||||
Index: Makefile
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
-prefix = $(HOME)
|
||||
+prefix = $(PREFIX)
|
||||
|
||||
-INSTALL_DIR = $(prefix)/share/sharness
|
||||
+SHARNESS_DIR = $(prefix)/share/sharness
|
||||
DOC_DIR = $(prefix)/share/doc/sharness
|
||||
EXAMPLE_DIR = $(DOC_DIR)/examples
|
||||
|
||||
@@ -16,14 +16,14 @@ TOMDOCSH = tomdoc.sh
|
||||
all:
|
||||
|
||||
install: all
|
||||
- $(INSTALL) -d -m 755 $(INSTALL_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
|
||||
- $(INSTALL) -m 644 $(INSTALL_FILES) $(INSTALL_DIR)
|
||||
+ $(INSTALL) -d -m 755 $(SHARNESS_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
|
||||
+ $(INSTALL) -m 644 $(INSTALL_FILES) $(SHARNESS_DIR)
|
||||
$(INSTALL) -m 644 $(DOC_FILES) $(DOC_DIR)
|
||||
- $(SED) -e "s!aggregate-results.sh!$(INSTALL_DIR)/aggregate-results.sh!" test/Makefile > $(EXAMPLE_DIR)/Makefile
|
||||
- $(SED) -e "s!. ./sharness.sh!. $(INSTALL_DIR)/sharness.sh!" test/simple.t > $(EXAMPLE_DIR)/simple.t
|
||||
+ $(SED) -e "s!aggregate-results.sh!$(SHARNESS_DIR)/aggregate-results.sh!" test/Makefile > $(EXAMPLE_DIR)/Makefile
|
||||
+ $(SED) -e "s!. ./sharness.sh!. $(SHARNESS_DIR)/sharness.sh!" test/simple.t > $(EXAMPLE_DIR)/simple.t
|
||||
|
||||
uninstall:
|
||||
- $(RM) -r $(INSTALL_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
|
||||
+ $(RM) -r $(SHARNESS_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
|
||||
|
||||
doc: all
|
||||
{ printf "# Sharness API\n\n"; \
|
14
devel/sharness/patches/patch-test_Makefile
Normal file
14
devel/sharness/patches/patch-test_Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
Force use of bash for tests - 15 fail without it.
|
||||
|
||||
Index: test/Makefile
|
||||
--- test/Makefile.orig
|
||||
+++ test/Makefile
|
||||
@@ -17,7 +17,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/ .
|
||||
|
||||
-SHELL_PATH ?= $(SHELL)
|
||||
+SHELL_PATH ?= ${LOCALBASE}/bin/bash
|
||||
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
||||
RM ?= rm -f
|
||||
PROVE ?= prove
|
Loading…
Add table
Add a link
Reference in a new issue