Bug 84484 - [patch] ocaml-extlib: error when deinstall
Summary: [patch] ocaml-extlib: error when deinstall
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: Sam Lawrance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 15:20 UTC by Jun Mukai
Modified: 2005-08-03 10:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jun Mukai 2005-08-02 15:20:14 UTC
      ocaml-extlib places documents at LOCALBASE/share/doc/ocaml/extlib but does not remove LOCALBASE/share/doc/ocaml.

Fix: switches documentation directory to LOCALBASE/share/doc/ocaml-extlib, which is similar to other many ocaml packages.

Following fix proposed.
************************************************** diff -u Makefile{.orig,}


PORTNAME=      extlib
 PORTVERSION=   1.3
+PORTREVISION=  1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=    ocaml-lib
@@ -19,20 +20,15 @@
 BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
                ocamlfind:${PORTSDIR}/devel/ocaml-findlib

-BROKEN=                Incomplete pkg-plist
-DEPRECATED=    ${BROKEN}
-EXPIRATION_DATE=2005-09-22
-
 USE_GMAKE=     yes
 ALL_TARGET=    all opt
-ALL_TARGET=    all opt
 .if !defined(NOPORTDOCS)
 ALL_TARGET+=   doc
 PLIST_SUB+=    PORTDOCS=""
 .else
 PLIST_SUB+=    PORTDOCS="@comment "
 .endif
-DOCSDIR=       ${PREFIX}/share/doc/ocaml/${PORTNAME}
+DOCSDIR=       ${PREFIX}/share/doc/ocaml-${PORTNAME}

 post-install:
 .if !defined(NOPORTDOCS)--4s4eYGT5p5GqAUxb2vR5QL0pbN9uu4LoqSAWSa62lP8yfdJH
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.orig       Tue Aug  2 22:48:00 2005
+++ Makefile    Tue Aug  2 22:48:34 2005
@@ -7,6 +7,7 @@
How-To-Repeat: # make install
# make deinstall
(there remains /usr/local/share/doc/ocaml)
Comment 1 Sam Lawrance freebsd_committer freebsd_triage 2005-08-02 16:08:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lawrance

Take
Comment 2 Sam Lawrance freebsd_committer freebsd_triage 2005-08-03 10:48:26 UTC
State Changed
From-To: open->closed

Committed, thanks! 
(no need to bump PORTREVISION)