x11-toolkits/py-fltk: support stage

This commit is contained in:
William Grzybowski 2013-12-30 13:13:54 +00:00
parent 50b917dcc8
commit 7d53fda8e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338110
2 changed files with 11 additions and 110 deletions

View file

@ -17,17 +17,18 @@ LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
USE_XORG= x11
PYDISTUTILS_PKGNAME= pyFltk
MAKE_ENV+= FLTK_HOME=${LOCALBASE}/bin
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
XTRADOCS= CHANGES README TODO
CFLAGS+= -DFL_LIBRARY
NO_STAGE= yes
PORTDOCS= *
PORTEXAMPLES= *
post-patch:
@${REINPLACE_CMD} -e "s|/usr/X11R6|${LOCALBASE}|g;s|package_data.*},||g;s|sunos5|freebsd8', 'freebsd9', 'freebsd10|g" ${WRKSRC}/setup.py
@ -35,16 +36,14 @@ post-build:
${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/fltk/test/help.py
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.html ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.jpg ${DOCSDIR}/html
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/fltk/test/*.py ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/fltk/test/HelpDialog.html ${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.html ${STAGEDIR}${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.jpg ${STAGEDIR}${DOCSDIR}/html
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/fltk/test/*.py ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/fltk/test/HelpDialog.html ${STAGEDIR}${EXAMPLESDIR}
.for i in ${XTRADOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View file

@ -1,98 +0,0 @@
%%PYTHON_SITELIBDIR%%/fltk/_fltk.so
%%PYTHON_SITELIBDIR%%/fltk/__init__.py
%%PYTHON_SITELIBDIR%%/fltk/__init__.pyc
%%PYTHON_SITELIBDIR%%/fltk/__init__.pyo
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%%%DOCSDIR%%/html/CH0_Preface.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH1_Intro.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH2_Basics.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH3_Common.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH4_Editor.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH5_Drawing.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH6_Events.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH7_Subclassing.html
%%PORTDOCS%%%%DOCSDIR%%/html/CH8_Opengl.html
%%PORTDOCS%%%%DOCSDIR%%/html/Hello.jpg
%%PORTDOCS%%%%DOCSDIR%%/html/HowToAddNewWidgets.html
%%PORTDOCS%%%%DOCSDIR%%/html/boxtype.jpg
%%PORTDOCS%%%%DOCSDIR%%/html/buttons.jpg
%%PORTDOCS%%%%DOCSDIR%%/html/editor-replace.jpg
%%PORTDOCS%%%%DOCSDIR%%/html/editor.jpg
%%PORTDOCS%%%%DOCSDIR%%/html/fltk.html
%%PORTDOCS%%%%DOCSDIR%%/html/pyFltk.html
%%PORTDOCS%%%%DOCSDIR%%/html/symbols.jpg
%%PORTDOCS%%%%DOCSDIR%%/html/valuators.jpg
%%PORTDOCS%%%%EXAMPLESDIR%%/DragAndDrop.py
%%PORTDOCS%%%%EXAMPLESDIR%%/DraggableBox.py
%%PORTDOCS%%%%EXAMPLESDIR%%/GlobalHandler.py
%%PORTDOCS%%%%EXAMPLESDIR%%/HelpDialog.html
%%PORTDOCS%%%%EXAMPLESDIR%%/TextEditor.py
%%PORTDOCS%%%%EXAMPLESDIR%%/adjuster.py
%%PORTDOCS%%%%EXAMPLESDIR%%/arc.py
%%PORTDOCS%%%%EXAMPLESDIR%%/ask.py
%%PORTDOCS%%%%EXAMPLESDIR%%/bitmap.py
%%PORTDOCS%%%%EXAMPLESDIR%%/boxtype.py
%%PORTDOCS%%%%EXAMPLESDIR%%/browser.py
%%PORTDOCS%%%%EXAMPLESDIR%%/browserData.py
%%PORTDOCS%%%%EXAMPLESDIR%%/browser_cols.py
%%PORTDOCS%%%%EXAMPLESDIR%%/button.py
%%PORTDOCS%%%%EXAMPLESDIR%%/buttons.py
%%PORTDOCS%%%%EXAMPLESDIR%%/chart.py
%%PORTDOCS%%%%EXAMPLESDIR%%/check_browser.py
%%PORTDOCS%%%%EXAMPLESDIR%%/clock.py
%%PORTDOCS%%%%EXAMPLESDIR%%/color_chooser.py
%%PORTDOCS%%%%EXAMPLESDIR%%/counters.py
%%PORTDOCS%%%%EXAMPLESDIR%%/cube.py
%%PORTDOCS%%%%EXAMPLESDIR%%/cursor.py
%%PORTDOCS%%%%EXAMPLESDIR%%/delwin.py
%%PORTDOCS%%%%EXAMPLESDIR%%/demos.py
%%PORTDOCS%%%%EXAMPLESDIR%%/dials.py
%%PORTDOCS%%%%EXAMPLESDIR%%/doublebuffer.py
%%PORTDOCS%%%%EXAMPLESDIR%%/draw.py
%%PORTDOCS%%%%EXAMPLESDIR%%/editor.py
%%PORTDOCS%%%%EXAMPLESDIR%%/file_browser.py
%%PORTDOCS%%%%EXAMPLESDIR%%/file_chooser.py
%%PORTDOCS%%%%EXAMPLESDIR%%/fltk_threads.py
%%PORTDOCS%%%%EXAMPLESDIR%%/formsbitmap.py
%%PORTDOCS%%%%EXAMPLESDIR%%/group.py
%%PORTDOCS%%%%EXAMPLESDIR%%/handle_events.py
%%PORTDOCS%%%%EXAMPLESDIR%%/hello.py
%%PORTDOCS%%%%EXAMPLESDIR%%/help.py
%%PORTDOCS%%%%EXAMPLESDIR%%/iconize.py
%%PORTDOCS%%%%EXAMPLESDIR%%/idle.py
%%PORTDOCS%%%%EXAMPLESDIR%%/image.py
%%PORTDOCS%%%%EXAMPLESDIR%%/image_array.py
%%PORTDOCS%%%%EXAMPLESDIR%%/listSelect.py
%%PORTDOCS%%%%EXAMPLESDIR%%/logo.py
%%PORTDOCS%%%%EXAMPLESDIR%%/menu.py
%%PORTDOCS%%%%EXAMPLESDIR%%/menubar.py
%%PORTDOCS%%%%EXAMPLESDIR%%/message.py
%%PORTDOCS%%%%EXAMPLESDIR%%/multi.py
%%PORTDOCS%%%%EXAMPLESDIR%%/pack.py
%%PORTDOCS%%%%EXAMPLESDIR%%/pixmap.py
%%PORTDOCS%%%%EXAMPLESDIR%%/postioner.py
%%PORTDOCS%%%%EXAMPLESDIR%%/preferences.py
%%PORTDOCS%%%%EXAMPLESDIR%%/radio.py
%%PORTDOCS%%%%EXAMPLESDIR%%/shapeGL.py
%%PORTDOCS%%%%EXAMPLESDIR%%/simple_table.py
%%PORTDOCS%%%%EXAMPLESDIR%%/sliders.py
%%PORTDOCS%%%%EXAMPLESDIR%%/subwindow.py
%%PORTDOCS%%%%EXAMPLESDIR%%/sudoku.py
%%PORTDOCS%%%%EXAMPLESDIR%%/symbols.py
%%PORTDOCS%%%%EXAMPLESDIR%%/table.py
%%PORTDOCS%%%%EXAMPLESDIR%%/tabs.py
%%PORTDOCS%%%%EXAMPLESDIR%%/testWrapper.py
%%PORTDOCS%%%%EXAMPLESDIR%%/testhelp.py
%%PORTDOCS%%%%EXAMPLESDIR%%/tile.py
%%PORTDOCS%%%%EXAMPLESDIR%%/timeout.py
%%PORTDOCS%%%%EXAMPLESDIR%%/tree.py
%%PORTDOCS%%%%EXAMPLESDIR%%/tty.py
%%PORTDOCS%%%%EXAMPLESDIR%%/valuators.py
%%PORTDOCS%%%%EXAMPLESDIR%%/widgets.py
%%PORTDOCS%%%%EXAMPLESDIR%%/window.py
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/fltk