Skip to content

Commit

Permalink
autogen plist
Browse files Browse the repository at this point in the history
  • Loading branch information
Ying-Chieh Liao authored and Ying-Chieh Liao committed Feb 5, 2004
1 parent 38a92d4 commit bb5988d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 115 deletions.
10 changes: 8 additions & 2 deletions misc/documancer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

PORTNAME= documancer
PORTVERSION= 0.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
Expand All @@ -26,6 +26,12 @@ USE_PYTHON= 2.3
USE_PERL5= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
MAKE_ENV= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}

PLIST_FILES= bin/documancer

post-install:
@${FIND} ${DATADIR} -type f | ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.mk>
44 changes: 6 additions & 38 deletions misc/documancer/files/patch-Makefile.in
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
--- Makefile.in.orig Sat Jan 31 03:56:14 2004
+++ Makefile.in Mon Feb 2 15:41:16 2004
@@ -57,34 +57,37 @@
$(INSTALL_DIR) $(DESTDIR)$(bindir)
$(INSTALL_DIR) $(DESTDIR)$(pkglibdir)
$(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/data
- $(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/gui
+ $(INSTALL_DIR) $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/gui
$(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/helpers
$(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/helpers/man2html
$(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/helpers/info2html
- $(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/providers
- $(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/providers/html
- $(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/providers/info
- $(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/providers/man
- $(INSTALL_DIR) $(DESTDIR)$(pkglibdir)/providers/pythondoc
+ $(INSTALL_DIR) $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/providers
+ $(INSTALL_DIR) $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/providers/html
+ $(INSTALL_DIR) $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/providers/info
+ $(INSTALL_DIR) $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/providers/man
+ $(INSTALL_DIR) $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/providers/pythondoc

--- Makefile.in.orig Thu Feb 5 09:16:01 2004
+++ Makefile.in Thu Feb 5 09:18:04 2004
@@ -70,18 +70,21 @@
# Install man2html:
$(INSTALL_PROG) src/helpers/man2html/man2html $(DESTDIR)$(pkglibdir)/helpers/man2html
$(INSTALL_PROG) $(srcdir)/src/helpers/man2html/man2html.cgi $(DESTDIR)$(pkglibdir)/helpers/man2html
Expand All @@ -35,27 +16,14 @@

# Install the app:
- (cd $(srcdir)/src ; for i in `find -name '*.py'` ; do $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/`dirname $$i` ; done)
+ (cd $(srcdir)/src ; for i in `find * -name '*.py'` ; do $(INSTALL_DATA) $$i $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/`dirname $$i` ; done)
+ (cd $(srcdir)/src ; for i in `find * -name '*.py'` ; do $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/`dirname $$i` ; done)

# Rewrite python location in documancer.py:
- sed -e 's,#!/usr/bin/env python,#!/usr/bin/env $(PYTHON),g' \
- $(srcdir)/src/documancer.py >$(DESTDIR)$(pkglibdir)/documancer.py
+# sed -e 's,#!/usr/bin/env python,#!/usr/bin/env $(PYTHON),g' \
+# $(srcdir)/src/documancer.py >$(DESTDIR)$(pkglibdir)/documancer.py
+ $(INSTALL_DATA) $(srcdir)/src/documancer.py $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer


- chmod +x $(DESTDIR)$(pkglibdir)/documancer.py
+ chmod +x $(DESTDIR)$(PYTHON_SITELIBDIR)/documancer/documancer.py
+ $(INSTALL_DATA) $(srcdir)/src/documancer.py $(DESTDIR)$(pkglibdir)

# Install data files:
$(INSTALL_DATA) $(srcdir)/COPYING $(srcdir)/NEWS $(DESTDIR)$(pkglibdir)/data
@@ -92,7 +95,7 @@


# Install symlink into bindir:
- ln -sf $(pkglibdir)/documancer.py $(DESTDIR)$(bindir)/documancer
+ ln -sf $(PYTHON_SITELIBDIR)/documancer/documancer.py $(DESTDIR)$(bindir)/documancer


dist: all
chmod +x $(DESTDIR)$(pkglibdir)/documancer.py
75 changes: 0 additions & 75 deletions misc/documancer/pkg-plist

This file was deleted.

0 comments on commit bb5988d

Please sign in to comment.