Codebase list chemical-structures / d88e77b
cleared bug #901916 Georges Khaznadar 3 years ago
5 changed file(s) with 60 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 chemical-structures (2.2.dfsg.0-16) unstable; urgency=medium
1
2 * split the packages in two parts: chemical-structures and
3 chemical-structures-data. Closes: #901916
4 * added the package chemical-structures-data and its description,
5 added the dependency chemical-structures -> chemical-structures-data
6 in d/control
7 * created files d/chemical-structures-data.install and
8 d/chemical-structures.install
9 * modified d/rules to take in account the changes, and move a lot
10 of files from chemical-structures-data's subdirectory to
11 chemical-structures.
12
13 -- Georges Khaznadar <georgesk@debian.org> Fri, 04 Dec 2020 16:32:46 +0100
14
015 chemical-structures (2.2.dfsg.0-15) unstable; urgency=medium
116
217 * fixed a lot of details which were idioms of python2 to comply with
0 usr/share/chemical-structures
99
1010 Package: chemical-structures
1111 Architecture: all
12 Depends: ${misc:Depends}, debconf, python3, openbabel, sensible-utils
12 Depends: ${misc:Depends},
13 debconf,
14 python3,
15 openbabel,
16 sensible-utils,
17 chemical-structures-data
1318 Recommends: chemical-mime-data, apache2| httpd, iceweasel|iceape
1419 Suggests: jmol, jmol-applet
20 Description: web service providing molecular structures in open formats
21 This web service allows one to browse a rich set of molecular
22 structures provided by the package chemical-structures-data, and
23 eventually have them translated to other open formats, thanks to
24 openbabel.
25
26 Package: chemical-structures-data
27 Architecture: all
28 Depends: ${misc:Depends}
1529 Description: set of molecular structures in open formats
1630 hundreds of molecular structures, in the following classes: alcohols,
1731 aldehydes, alkanes, alkenes, amides, amines, amino_acids, aromatics,
1832 carboxylic_acids, esters, ethers, fatty_acids, haloalkanes, ketones,
1933 nitriles,nucleobases, water.
20
88 # Uncomment this to turn on verbose mode.
99 #export DH_VERBOSE=1
1010
11 DESTDIR = $(CURDIR)/debian/chemical-structures
11 DESTDIR = $(CURDIR)/debian/tmp
1212 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
1313 XP = xsltproc --nonet
1414
3333
3434 override_dh_auto_install:
3535 cd build; make install
36 install -d $(DESTDIR)/usr/share/
3637 install -m 755 convert.cgi $(DESTDIR)/usr/share/chemical-structures
3738 install -m 644 index.html $(DESTDIR)/usr/share/chemical-structures
39 install -d $(DESTDIR)/usr/bin
3840 install -m 755 chemstruc $(DESTDIR)/usr/bin
41 install -d $(DESTDIR)/etc/apache2/conf-available
3942 install -m 644 apache.conf $(DESTDIR)/etc/apache2/conf-available/chemical-structures.conf
4043 rm -f $(DESTDIR)/usr/share/chemical-structures/jmol/LICENSE.txt
4144 sh removeMolTimestamp $(DESTDIR)/usr/share/chemical-structures
4245
46 override_dh_install:
47 # take in account d/*.install files
48 dh_install
49 # create necessary subdirectories under /usr/share/chemical-structures
50 # for the package chemical-structures.
51 for d in $$(find debian/chemical-structures-data/usr/share/chemical-structures -maxdepth 1 -mindepth 1 -type d); do \
52 e=$$(echo $$d| sed 's/chemical-structures-data/chemical-structures/'); \
53 install -d $$e; \
54 done
55 # move every HTML file from chemical-structures-data to
56 # chemical-structures.
57 # first, from the molecules families' subdirectories:
58 for f in $$(find debian/chemical-structures-data/usr/share/chemical-structures/*/*.html); do \
59 g=$$(echo $$f| sed 's/chemical-structures-data/chemical-structures/'); \
60 echo "$$(basename $$f): chemical-structures-data ==> chemical-structures"; \
61 mv $$f $$g; \
62 done
63 # then from the top directory, and including the gci script.
64 for f in $$(find debian/chemical-structures-data/usr/share/chemical-structures -maxdepth 1 -type f); do \
65 g=$$(echo $$f| sed 's/chemical-structures-data/chemical-structures/'); \
66 mv $$f $$g; \
67 done
68