Skip to content

Commit

Permalink
Merge pull request #9 from srl295/cdemo-upd
Browse files Browse the repository at this point in the history
ICU-13668 update all icu4c demos to work
  • Loading branch information
srl295 authored Oct 7, 2019
2 parents fe212bc + 5a73430 commit af113a9
Show file tree
Hide file tree
Showing 40 changed files with 2,284 additions and 520 deletions.
1 change: 0 additions & 1 deletion apputil/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ CONFIG_H=demo_config.h
LIBPREFIX=lib
# srcdir must be set before this is included
include $(top_builddir)/icuapps.mk
include $(shell $(ICU_CONFIG) --incfile)

## Extra files to remove for 'make clean'
CLEANFILES = *~ $(DEPS)
Expand Down
2 changes: 1 addition & 1 deletion convexp/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install-local: all-local install-target
install-target: all-local
$(MKINSTALLDIRS) $(BINDIR) $(DESTDIR)$(BINDIR)/data
$(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
$(INSTALL) convexp-header.html $(DESTDIR)$(BINDIR)/data
$(INSTALL) $(srcdir)/convexp-header.html $(DESTDIR)$(BINDIR)/data

dist-local:

Expand Down
4 changes: 2 additions & 2 deletions dumpdat/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ distclean distclean-local target-clean-local dist dist-local check \
check-local

install-local: all-local
$(MKINSTALLDIRS) $(BINDIR)
$(INSTALL) $(TARGET) $(BINDIR)/$(TARGET)
$(MKINSTALLDIRS) $(DESTDIR)$(BINDIR)
$(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)

all-local: $(TARGET)

Expand Down
9 changes: 7 additions & 2 deletions icu-kube/docker.d/icu4c-demos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ RUN mkdir /home/build/build /home/build/src
WORKDIR /home/build/build
ADD . /home/build/src/
ENV PREFIX=/home/build/icu
RUN ~/src/configure --prefix=${PREFIX} ICU_CONFIG=$(which icu-config)
RUN make all OBS= && make install OBS= DESTDIR=${PREFIX}
# HACK: translitdemo is not out of source enabled
RUN cp -R /home/build/src/translitdemo /home/build/build/translitdemo
RUN ~/src/configure --prefix=${PREFIX} ICU_CONFIG=$(which icu-config) && \
make all install OBS= DESTDIR=${PREFIX} CONTEXTPATH=/icu-bin/ ICU_COMMON_HEADERS=/home/build/src/icu-kube/icuheaders
#make -k DEPS= clean && make -k DEPS= distclean && sudo apt-get purge -y git subversion python3 doxygen zip curl g++ && sudo apt-get -y autoremove && sudo apt-get clean -y
#RUN make all
RUN cp -R /home/build/src/translitdemo /home/build/icu/translitdemo

FROM alpine:latest as httpd
USER root
Expand All @@ -47,6 +50,8 @@ COPY --from=build /home/build/icu /home/build/icu
RUN if [ -d /home/build/icu/usr/local ]; then (cd /home/build/icu/usr/; ln -sv local/* .); fi; ls -l /home/build/icu/usr/bin/
ENV LD_LIBRARY_PATH /home/build/icu/usr/lib
EXPOSE 8080
# this needs special treatment
RUN cp -v /home/build/icu/usr/bin/data/collation.html /var/www/localhost/htdocs/ || true
COPY icu-kube/lighttpd.conf /etc/lighttpd/lighttpd.conf
COPY icu-kube/index.html /var/www/localhost/htdocs/index.html
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
4 changes: 4 additions & 0 deletions icu-kube/icuheaders/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# icuheaders

This contains copies of ICU header files that are used by some demos.
TODO: change demos to not depend on these.
Loading

0 comments on commit af113a9

Please sign in to comment.