]> git.pld-linux.org Git - packages/ocaml-menhir.git/commitdiff
- fix install
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 6 Jun 2017 17:23:58 +0000 (19:23 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 6 Jun 2017 17:23:58 +0000 (19:23 +0200)
- rel 2

destdir.patch [new file with mode: 0644]
ocaml-menhir.spec

diff --git a/destdir.patch b/destdir.patch
new file mode 100644 (file)
index 0000000..eab884c
--- /dev/null
@@ -0,0 +1,38 @@
+--- menhir-20170509/Makefile~  2017-05-09 21:26:09.000000000 +0200
++++ menhir-20170509/Makefile   2017-06-06 19:09:55.839985076 +0200
+@@ -178,11 +178,11 @@
+ install:
+ # Install the executable.
+-      mkdir -p $(bindir)
+-      install $(BUILDDIR)/menhir.$(TARGET) $(bindir)/$(MENHIREXE)
++      mkdir -p $(DESTDIR)$(bindir)
++      install $(BUILDDIR)/menhir.$(TARGET) $(DESTDIR)$(bindir)/$(MENHIREXE)
+ # Install Menhir's standard library.
+-      mkdir -p $(libdir)
+-      install -m 644 $(MLYLIB) $(libdir)
++      mkdir -p $(DESTDIR)$(libdir)
++      install -m 644 $(MLYLIB) $(DESTDIR)$(libdir)
+ # Install MenhirLib and MenhirSdk.
+       @if `$(BUILDDIR)/menhir.$(TARGET) --suggest-ocamlfind | tr -d '\r'` ; then \
+         echo 'Installing MenhirLib and MenhirSdk via ocamlfind.' ; \
+@@ -193,14 +193,14 @@
+         rm -f META ; \
+       else \
+         echo 'Installing MenhirLib and MenhirSdk manually.' ; \
+-        install -m 644 $(patsubst %,$(BUILDDIR)/%,$(MENHIRLIB)) $(libdir) ; \
+-        install -m 644 $(patsubst %,$(SDKDIR)/%,$(MENHIRSDK)) $(libdir) ; \
++        install -m 644 $(patsubst %,$(BUILDDIR)/%,$(MENHIRLIB)) $(DESTDIR)$(libdir) ; \
++        install -m 644 $(patsubst %,$(SDKDIR)/%,$(MENHIRSDK)) $(DESTDIR)$(libdir) ; \
+       fi
+ # Install the documentation, if it has been built.
+       if [ -f manual.pdf ] ; then \
+-        mkdir -p $(docdir) $(mandir) && \
+-        cp -r $(DOCS) $(docdir) && \
+-        cp -r $(MANS) $(mandir) ; \
++        mkdir -p $(DESTDIR)$(docdir) $(DESTDIR)$(mandir) && \
++        cp -r $(DOCS) $(DESTDIR)$(docdir) && \
++        cp -r $(MANS) $(DESTDIR)$(mandir) ; \
+       fi
+ uninstall:
index 2d9550f303b2b044622c2e76996e3f497b70db25..46392e3a05ddf42974392e5a0ef6438ac767b832 100644 (file)
 Summary:       LR(1) parser generator for the OCaml programming language
 Name:          ocaml-%{module}
 Version:       20170509
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Libraries
 Source0:       http://gallium.inria.fr/~fpottier/menhir/%{module}-%{version}.tar.gz
 # Source0-md5: b8ba18b5abda831cf41cd4fa65f4c51b
+Patch0:                destdir.patch
 URL:           http://gallium.inria.fr/~fpottier/menhir/
 BuildRequires: ocaml >= 3.04-7
 BuildRequires: ocaml-ocamlbuild
@@ -56,6 +57,7 @@ menhir.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch0 -p1
 
 %build
 %{__make} PREFIX=%{_prefix} USE_OCAMLFIND=true all
This page took 0.077332 seconds and 4 git commands to generate.